Skip to content

Commit e5b556b

Browse files
Merge pull request #339 from incertum/chore/workflow-permissions
chore: restrict GitHub workflow permissions - future-proof
2 parents 4e4a93a + e0588e2 commit e5b556b

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.github/workflows/ci-prb.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: PR Builder
22

3+
permissions:
4+
contents: read
5+
36
on:
47
pull_request:
58
branches: [ main ]

.github/workflows/ci-release-docs.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
name: Doc Builder
2+
permissions:
3+
contents: read
24
on:
35
release:
46
types: [published]
5-
permissions:
6-
pages: write
7-
id-token: write
87
jobs:
98
build:
109
name: Doc Builder
@@ -26,6 +25,9 @@ jobs:
2625
with:
2726
path: docs
2827
deploy:
28+
permissions:
29+
pages: write
30+
id-token: write
2931
environment:
3032
name: github-pages
3133
url: ${{ steps.deployment.outputs.page_url }}

.github/workflows/ci-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Publish Library
2+
permissions:
3+
contents: read
24
on:
35
release:
46
types: [published]

0 commit comments

Comments
 (0)