diff --git a/.github/workflows/codacy-analysis.yml b/.github/workflows/codacy-analysis.yml index e7d73fa77..c2df7678b 100644 --- a/.github/workflows/codacy-analysis.yml +++ b/.github/workflows/codacy-analysis.yml @@ -20,7 +20,7 @@ on: jobs: codacy-security-scan: # Ensure this job never runs on forked repos. It's only executed for 'snipe/snipe-it' - if: github.repository == 'snipe/snipe-it' + if: (github.repository == 'snipe/snipe-it') && ((github.repository != 'snipe/snipe-it') && (github.event_name != 'schedule')) name: Codacy Security Scan runs-on: ubuntu-latest steps: