Unverified Commit 93424589 authored by Grossman, Aiden Michael's avatar Grossman, Aiden Michael Committed by GitHub
Browse files

[Github] Prevent scorecard action from running on forks (#72780)

Currently, the scorecard action runs on forks. This means that every
recent fork will be periodically running a job that doesn't really make
a lot of sense to run outside the main monorepo. This patch fixes that
by restricting the job to only run in the monorepo.
parent 5237193b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ jobs:
  analysis:
    name: Scorecard analysis
    runs-on: ubuntu-latest
    if: github.repository = 'llvm/llvm-project'
    permissions:
      # Needed to upload the results to code-scanning dashboard.
      security-events: write