Skip to content

Commit f0f09d5

Browse files
committed
Fix scorecard workflow permissions
1 parent 2571ec6 commit f0f09d5

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/scorecard.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# yamllint disable rule:line-length
2+
#
3+
# There are restrictions on this workflow:
4+
# https://github.com/ossf/scorecard-action#workflow-restrictions
25
---
36
name: OpenSSF Scorecard
47

@@ -10,18 +13,20 @@ on:
1013
- master
1114
branch_protection_rule: {}
1215

13-
permissions:
14-
actions: read
16+
permissions: # no workflow-level write permissions allowed
1517
contents: read
16-
id-token: write
17-
security-events: write
1818

1919
concurrency:
2020
group: scorecard
2121
cancel-in-progress: true
2222

2323
jobs:
2424
analysis:
25+
permissions:
26+
actions: read
27+
contents: read
28+
id-token: write
29+
security-events: write
2530
if: github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request'
2631
runs-on: ubuntu-latest
2732
steps:

0 commit comments

Comments
 (0)