File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments