Skip to content

Commit 9f9834a

Browse files
authored
ci: scope down GitHub Token permissions (#1753)
* ci: scope down permissions for git-sync.yml * ci: scope down permissions for update-smithy-gradle-plugin.yml * ci: scope down permissions for ci.yml
1 parent 521d67c commit 9f9834a

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.github/workflows/ci.yml

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

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
build:
1114
runs-on: ${{ matrix.os }}

.github/workflows/git-sync.yml

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

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

.github/workflows/update-smithy-gradle-plugin.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
# Runs every wednesday at 11
77
- cron: '0 11 * * WED'
88

9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
913
jobs:
1014
get-version:
1115
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)