Skip to content

Commit 5070dfc

Browse files
committed
ci: Add permission config to workflow files
1 parent 68b305c commit 5070dfc

4 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/ci.yml

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

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
test:
1215
name: General checks

.github/workflows/commitlint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches:
99
- main
1010

11+
permissions:
12+
contents: read
13+
pull-requests: read
14+
1115
jobs:
1216
commitlint:
1317
runs-on: ubuntu-latest

.github/workflows/issues.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
schedule:
44
- cron: '00 20 * * *'
55

6+
permissions:
7+
issues: write
8+
pull-requests: write
9+
610
jobs:
711
stale:
812
name: Flag and close stale issues

.github/workflows/reuse-compliance.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- main
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
compliance-check:
1316
name: Compliance Check

0 commit comments

Comments
 (0)