Skip to content

Commit

Permalink
fixup! Update permissions for workflows that call scorecard
Browse files Browse the repository at this point in the history
Signed-off-by: Spencer Wilson <spencer.wilson@uwaterloo.ca>
  • Loading branch information
SWilson4 committed Sep 4, 2024
1 parent 6849a0b commit c2b15dc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/commit-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jobs:
scorecard:
uses: ./.github/workflows/scorecard.yml
secrets: inherit
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
# Needed to publish results and get a badge (see publish_results below).
id-token: write

basic-downstream:
uses: ./.github/workflows/downstream-basic.yml
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ jobs:
needs: basic-checks
uses: ./.github/workflows/scorecard.yml
secrets: inherit
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
# Needed to publish results and get a badge (see publish_results below).
id-token: write
5 changes: 5 additions & 0 deletions .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ jobs:
scorecard:
uses: ./.github/workflows/scorecard.yml
secrets: inherit
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
# Needed to publish results and get a badge (see publish_results below).
id-token: write

extended-tests:
uses: ./.github/workflows/extended.yml

0 comments on commit c2b15dc

Please sign in to comment.