Skip to content

Commit 90c5c14

Browse files
authored
Add top-level permissions to codeql.yml for Scorecard Token-Permissions (#90)
1 parent 637f574 commit 90c5c14

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ on:
99
# Run weekly on Mondays at 08:00 UTC
1010
- cron: "0 8 * * 1"
1111

12+
# Least privilege at the top level (OpenSSF Scorecard Token-Permissions); the
13+
# analyze job below re-declares the scoped security-events: write it needs.
14+
permissions:
15+
contents: read
16+
1217
jobs:
1318
analyze:
1419
name: Analyze Python

0 commit comments

Comments
 (0)