From 2cd7c7a357cac76d33f9d43263e1a6a5c2da0d10 Mon Sep 17 00:00:00 2001 From: "Shao Yu-Lung (Allen)" Date: Thu, 28 Apr 2022 16:51:53 +0800 Subject: [PATCH] Ensure analysis job never runs on forked repos --- .github/workflows/codacy-analysis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/codacy-analysis.yml b/.github/workflows/codacy-analysis.yml index bbc5bc09d9..e7d73fa772 100644 --- a/.github/workflows/codacy-analysis.yml +++ b/.github/workflows/codacy-analysis.yml @@ -19,6 +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' name: Codacy Security Scan runs-on: ubuntu-latest steps: