Skip to content

Commit a6d71c9

Browse files
committed
ci: Use least privilege principle for permissions
Declares only the required permissions per workflow.
1 parent 804c4ff commit a6d71c9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/github-ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- main
1010

11+
# No permissions are required for this workflow
12+
permissions: {}
13+
1114
jobs:
1215
test:
1316
name: General checks, tests and coverage reporting

.github/workflows/reuse-compliance.yml

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- main
1010

11+
# No permissions are required for this workflow
12+
permissions: {}
13+
1114
jobs:
1215
compliance-check:
1316
name: Compliance Check

0 commit comments

Comments
 (0)