Skip to content

Commit f9ab2d0

Browse files
fix(ci): add required permissions for reusable workflows (Bug B)
Add security-events: write and id-token: write to workflow-level permissions in scorecard.yml for scorecard-reusable.yml calls. Ensure contents: read at workflow-level for secret-scanner.yml. Part of metadatastician/standards#426 remediation - Batch 2. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
1 parent ecf4c18 commit f9ab2d0

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎.github/workflows/scorecard.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ on:
88
push:
99
branches: [main]
1010

11-
permissions: read-all
11+
permissions:
12+
contents: read
13+
security-events: write
14+
id-token: write
1215
actions: read
1316

1417
jobs:

‎.github/workflows/secret-scanner.yml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ concurrency:
1111
cancel-in-progress: true
1212

1313
permissions:
14-
actions: read
1514
contents: read
16-
1715
jobs:
1816
scan:
1917
permissions:

0 commit comments

Comments
 (0)