Skip to content

Commit df29b67

Browse files
committed
Add explicit permissions to workflows
1 parent c576761 commit df29b67

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/build-lint-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Build, Lint, and Test
33
on:
44
workflow_call:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
prepare:
811
name: Prepare

.github/workflows/main.yml

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

8+
permissions:
9+
contents: read
10+
811
jobs:
912
check-workflows:
1013
name: Check workflows
@@ -67,6 +70,7 @@ jobs:
6770
- check-workflows
6871
- analyse-code
6972
- build-lint-test
73+
permissions: {}
7074
outputs:
7175
PASSED: ${{ steps.set-output.outputs.PASSED }}
7276
steps:
@@ -79,6 +83,7 @@ jobs:
7983
if: ${{ always() }}
8084
runs-on: ubuntu-latest
8185
needs: all-jobs-completed
86+
permissions: {}
8287
steps:
8388
- name: Check that all jobs have passed
8489
run: |

.github/workflows/publish-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
required: true
1010
PUBLISH_DOCS_TOKEN:
1111
required: true
12+
13+
permissions:
14+
contents: read
15+
1216
jobs:
1317
publish-release:
1418
permissions:

0 commit comments

Comments
 (0)