Skip to content

Commit 533d8ea

Browse files
arpitjain099rosa
authored andcommitted
ci: set explicit read permissions on ci workflow
Set an explicit least-privilege permissions block so the workflow GITHUB_TOKEN is scoped to contents: read instead of inheriting the repository default. Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
1 parent eb0f76e commit 533d8ea

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- main
77
pull_request:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
rubocop:
1114
name: Rubocop

0 commit comments

Comments
 (0)