Skip to content

Commit 43d6c85

Browse files
Merge pull request #100 from incertum/chore/workflow-permissions
chore: restrict GitHub workflow permissions - future-proof
2 parents f20d1cb + 75881f5 commit 43d6c85

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/ci-prb.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: PR Builder
2+
permissions:
3+
contents: read
24
on:
35
pull_request:
46
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
@@ -25,6 +24,9 @@ jobs:
2524
with:
2625
path: docs
2726
deploy:
27+
permissions:
28+
pages: write
29+
id-token: write
2830
environment:
2931
name: github-pages
3032
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)