Skip to content

Commit 5b069e0

Browse files
committedFeb 5, 2025
Limit scorecard to default branch
Signed-off-by: Josh Soref <[email protected]>
1 parent 55eb185 commit 5b069e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎code-scanning/scorecard.yml

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
analysis:
2222
name: Scorecard analysis
2323
runs-on: ubuntu-latest
24+
# This action only works when run from the default branch
25+
if: github.event.repository.default_branch == github.ref_name
2426
permissions:
2527
# Needed to upload the results to code-scanning dashboard.
2628
security-events: write

0 commit comments

Comments
 (0)