Skip to content

Commit

Permalink
Fix permissions for scorecard action so it doesnt report itself
Browse files Browse the repository at this point in the history
Signed-off-by: Nigel Jones <[email protected]>
  • Loading branch information
planetf1 committed Apr 19, 2024
1 parent c0aa784 commit d529c69
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: Scorecard supply-chain security

permissions:
contents: read
# needed to allow a badge to be created
# ie [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/{owner}/{repo}/badge)](https://securityscorecards.dev/viewer/?uri=github.com/{owner}/{repo})
id-token: write
security-events: write
permissions: read-all

on:
# For Branch-Protection check. Only the default branch is supported. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
Expand Down

0 comments on commit d529c69

Please sign in to comment.