Skip to content

Commit 5ef8fa0

Browse files
committed
Add explicit permissions to workflows
1 parent 1008aa4 commit 5ef8fa0

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
@@ -71,6 +74,7 @@ jobs:
7174
- check-workflows
7275
- analyse-code
7376
- build-lint-test
77+
permissions: {}
7478
outputs:
7579
PASSED: ${{ steps.set-output.outputs.PASSED }}
7680
steps:
@@ -83,6 +87,7 @@ jobs:
8387
if: ${{ always() }}
8488
runs-on: ubuntu-latest
8589
needs: all-jobs-completed
90+
permissions: {}
8691
steps:
8792
- name: Check that all jobs have passed
8893
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
build:
1418
name: Build

0 commit comments

Comments
 (0)