Skip to content

Commit a2d8794

Browse files
committed
Stop using default GHA permissions
1 parent c920434 commit a2d8794

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- "**" # This will match pull requests targeting any branch
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
build:
1316
strategy:

.github/workflows/deploy-doc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
# Review gh actions docs if you want to further define triggers, paths, etc
88
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
build:
1215
name: Build Docusaurus

.github/workflows/more-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ on:
1919
branches:
2020
- "**" # This will match pull requests targeting any branch
2121

22+
permissions:
23+
contents: read
24+
2225
jobs:
2326
build:
2427
strategy:

.github/workflows/test-deploy-doc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
# Review gh actions docs if you want to further define triggers, paths, etc
88
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
test-deploy:
1215
name: Test deployment

0 commit comments

Comments
 (0)