Skip to content

A free open source IT asset/license management system

fix type

Shao Yu-Lung (Allen)8a032ee0409b
diff --git a/.github/workflows/codacy-analysis.yml b/.github/workflows/codacy-analysis.yml
index c2df7678b5..81917e6b6a 100644
--- a/.github/workflows/codacy-analysis.yml
+++ b/.github/workflows/codacy-analysis.yml
@@ -19,8 +19,8 @@ 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') && ((github.repository != 'snipe/snipe-it') && (github.event_name != 'schedule'))
+ # Ensure schedule job never runs on forked repos. It's only executed for '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: