Skip to content

Commit

Permalink
Limit scorecard to default branch
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Soref <[email protected]>
  • Loading branch information
jsoref committed Feb 5, 2025
1 parent 55eb185 commit 5b069e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code-scanning/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
# This action only works when run from the default branch
if: github.event.repository.default_branch == github.ref_name
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
Expand Down

0 comments on commit 5b069e0

Please sign in to comment.