Skip to content

Commit 9bdbaef

Browse files
ci: add minimum GitHub token permissions for workflows (#8169)
Signed-off-by: Varun Sharma <[email protected]>
1 parent bb04915 commit 9bdbaef

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/dependabot-merge.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request_target:
55
branches: [ master, next ]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
merge-me:
912
name: Merge me!

.github/workflows/docker-image-check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
schedule:
66
- cron: '30 4 * * *'
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
build:
1013
runs-on: ubuntu-latest

.github/workflows/nodejs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
env:
1313
CYPRESS_CACHE_FOLDER: cypress/cache
1414

15+
permissions:
16+
contents: read
17+
1518
jobs:
1619
build:
1720
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)