Skip to content

Commit bd69c28

Browse files
authored
ci: scope down GitHub Token permissions (#232)
* ci: scope down permissions for makefile-test.yaml * ci: scope down permissions for summarize-test.yaml * ci: scope down permissions for publish.yaml
1 parent e6b2e8f commit bd69c28

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.github/workflows/makefile-test.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
push:
66
branches: [ master ]
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
run-tests:
1013
if: "!contains(github.event.pull_request.labels.*.name, 'no-test')"

.github/workflows/publish.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
branches:
88
- 'documentation'
99

10+
permissions:
11+
contents: write
12+
pages: write
13+
1014
jobs:
1115
publish:
1216
runs-on: macos-latest

.github/workflows/summarize-test.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
push:
66
branches: [ master ]
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
run-tests:
1013
if: "!contains(github.event.pull_request.labels.*.name, 'no-test')"

0 commit comments

Comments
 (0)