Skip to content

Commit

Permalink
[Github] Prevent scorecard action from running on forks (llvm#72780)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
boomanaiden154 authored Nov 19, 2023
1 parent 5237193 commit 9342458
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9342458

Please sign in to comment.