Skip to content

Commit 9a4c227

Browse files
committed
Add permissions to workflows
1 parent 7478853 commit 9a4c227

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

.github/workflows/bump-packages.yaml

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

8+
permissions:
9+
contents: none # we use the github app's token to checkout and push
10+
811
jobs:
912
update_generated_files:
1013
name: Bump packages

.github/workflows/check-test.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
branches:
1212
- main
1313

14+
permissions:
15+
contents: read # we just need to checkout the repo
16+
1417
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1518
jobs:
1619
check-and-test:

.github/workflows/publish-packages.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
types:
88
- completed
99

10+
permissions:
11+
contents: none # we use the github app's token to checkout and push
12+
1013
jobs:
1114
publish:
1215
if: |

.github/workflows/update-cidrs.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
schedule:
77
- cron: "0 0 * * *"
88

9+
permissions:
10+
contents: none # we use the github app's token to checkout and push
11+
912
jobs:
1013
update_generated_files:
1114
name: Update automatically generated files

0 commit comments

Comments
 (0)