Skip to content

Commit 6a30377

Browse files
committed
chore: scope SDK bot App token permissions
1 parent 7af2b1c commit 6a30377

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/block-generated-edits.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ on:
99
jobs:
1010
block-generated-edits:
1111
uses: workos/actions/.github/workflows/block-generated-edits.yml@main
12-
secrets: inherit
12+
secrets:
13+
SDK_BOT_PRIVATE_KEY: ${{ secrets.SDK_BOT_PRIVATE_KEY }}

.github/workflows/release-please.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
with:
3636
app-id: ${{ vars.SDK_BOT_APP_ID }}
3737
private-key: ${{ secrets.SDK_BOT_PRIVATE_KEY }}
38+
permission-contents: write
39+
permission-pull-requests: write
3840

3941
- uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
4042
id: release
@@ -55,6 +57,8 @@ jobs:
5557
with:
5658
app-id: ${{ vars.SDK_BOT_APP_ID }}
5759
private-key: ${{ secrets.SDK_BOT_PRIVATE_KEY }}
60+
permission-contents: write
61+
permission-pull-requests: write
5862

5963
- name: Checkout release PR branch
6064
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 6.0.3
@@ -183,6 +187,8 @@ jobs:
183187
with:
184188
app-id: ${{ vars.SDK_BOT_APP_ID }}
185189
private-key: ${{ secrets.SDK_BOT_PRIVATE_KEY }}
190+
permission-contents: write
191+
permission-pull-requests: write
186192

187193
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 6.0.3
188194
with:

0 commit comments

Comments
 (0)