Skip to content

Commit f3365a6

Browse files
committed
fix: scope app token permissions and fix prettier formatting
Adds permission-contents and permission-pull-requests inputs to the create-github-app-token step to limit the minted token's scope (fixes zizmor github-app finding). Also converts single-quoted app-id value to double quotes to satisfy prettier.
1 parent ca8a304 commit f3365a6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/fix-drift.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ jobs:
3232
id: app-token
3333
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
3434
with:
35-
app-id: '1108748'
35+
app-id: "1108748"
3636
private-key: ${{ secrets.DEVOPS_BOT_PRIVATE_KEY }}
37+
permission-contents: write
38+
permission-pull-requests: write
3739
- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
3840
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
3941
with:

0 commit comments

Comments
 (0)