Skip to content

Commit bfde65e

Browse files
committed
Improve default settings for GHA permissions
1 parent 07d389b commit bfde65e

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

.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/dune-pkg-more-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
branches:
1515
- "**"
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
build:
1922
strategy:

.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)