Skip to content

Commit 26bd488

Browse files
authored
ci: scope down GitHub Token permissions (#80)
* ci: scope down permissions for update_snapshot.yml * ci: scope down permissions for build.yml
1 parent d19fdc1 commit 26bd488

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
- main
66
workflow_dispatch:
77
pull_request:
8+
permissions:
9+
contents: read
10+
811
jobs:
912
Build-and-Test-CDK:
1013
runs-on: ubuntu-latest

.github/workflows/update_snapshot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches:
77
- 'dependabot/**'
88

9+
permissions:
10+
contents: write
11+
912
jobs:
1013
update:
1114
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)