Skip to content

Commit 69b3bd7

Browse files
committed
ci: Use least privilege principle for permissions
Declares only the required permissions per workflow.
1 parent 5b57ece commit 69b3bd7

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
push:
44
branches: [ main ]
55

6+
permissions:
7+
contents: write
8+
69
jobs:
710
build:
811
runs-on: ubuntu-latest

.github/workflows/github-ci.yml

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

9+
# No permissions are required for this workflow
10+
permissions: {}
11+
912
jobs:
1013
test:
1114
name: General checks, tests and build

.github/workflows/reuse-compliance.yml

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

9+
# No permissions are required for this workflow
10+
permissions: {}
11+
912
jobs:
1013
compliance-check:
1114
name: Compliance Check

0 commit comments

Comments
 (0)