Skip to content

Commit 9342458

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.
1 parent 5237193 commit 9342458

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/scorecard.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
analysis:
2323
name: Scorecard analysis
2424
runs-on: ubuntu-latest
25+
if: github.repository = 'llvm/llvm-project'
2526
permissions:
2627
# Needed to upload the results to code-scanning dashboard.
2728
security-events: write

0 commit comments

Comments
 (0)