Skip to content

Commit 02e85bd

Browse files
clydindgp1130
authored andcommitted
ci: adjust workflow permissions for OpenSSF Scorecard results publishing
Version 2 of the `openssf/scorecard-action` GitHub action requires the `id-token: write` permission to publish results.
1 parent fdc315d commit 02e85bd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/scorecard.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ jobs:
1616
name: Scorecards analysis
1717
runs-on: ubuntu-latest
1818
permissions:
19-
# Needed to upload the results to code-scanning dashboard.
20-
security-events: write
2119
actions: read
2220
contents: read
21+
# Needed to upload the results to code-scanning dashboard.
22+
security-events: write
23+
# Needed to publish results
24+
id-token: write
2325

2426
steps:
2527
- name: 'Checkout code'

0 commit comments

Comments
 (0)