Skip to content

Commit 695f2aa

Browse files
authored
Update claude-security-review.yml
Signed-off-by: Adam Poulemanos <89049923+bashandbone@users.noreply.github.com>
1 parent 378e73b commit 695f2aa

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/claude-security-review.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ on:
4646
CLAUDE_CODE_OAUTH_TOKEN:
4747
description: 'Org subscription OAuth token for Claude Code'
4848
required: true
49+
GITHUB_TOKEN:
50+
description: "Token for the caller's repo"
51+
required: true
4952

5053
# Layer 2: the workflow GITHUB_TOKEN stays read-only. All writes go through the
5154
# down-scoped App token minted below, which is what makes comments post as
@@ -80,12 +83,15 @@ jobs:
8083
- name: Mint down-scoped app token
8184
id: app-token
8285
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1
86+
env:
87+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN || github.token }}
8388
with:
8489
client-id: ${{ secrets.KNITLI_AGENT_CLIENT_ID }}
8590
private-key: ${{ secrets.KNITLI_AGENT_PRIVATE_KEY }}
8691
permission-pull-requests: write
8792
permission-contents: read
8893
permission-checks: read
94+
permission:actions: read
8995
permission-security-events: read
9096

9197
# Layer 3: pin Claude to inline review comments + read-only gh PR commands.

0 commit comments

Comments
 (0)