From 8282afb48684413c57cd81d035d863fab449475c Mon Sep 17 00:00:00 2001 From: Chongyi Zheng Date: Mon, 4 Mar 2024 22:27:18 -0500 Subject: [PATCH] ci: prevent OSSF analysis workflow from running in forks (#3652) * Run OSSF analysis only on default branch * move on top to match project code style --------- Co-authored-by: Alexandr --- .github/workflows/ossf-analysis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ossf-analysis.yml b/.github/workflows/ossf-analysis.yml index 180bf8926d327..cb31e1f299313 100644 --- a/.github/workflows/ossf-analysis.yml +++ b/.github/workflows/ossf-analysis.yml @@ -11,6 +11,7 @@ permissions: read-all jobs: analysis: + if: github.repository == 'anuraghazra/github-readme-stats' name: Scorecard analysis runs-on: ubuntu-latest permissions: