From a835401cb2ac63dee9802e665f3bbdd2ee0ee835 Mon Sep 17 00:00:00 2001 From: "Shao Yu-Lung (Allen)" Date: Sat, 7 May 2022 22:50:01 +0800 Subject: [PATCH] skip run schedule analysis job on forked repos --- .github/workflows/codacy-analysis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: