Skip to content

A free open source IT asset/license management system

skip run schedule analysis job on forked repos

Shao Yu-Lung (Allen)a835401cb2ac
diff --git a/.github/workflows/codacy-analysis.yml b/.github/workflows/codacy-analysis.yml
index e7d73fa772..c2df7678b5 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: