File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 timeout-minutes : 15
1919 permissions :
2020 contents : read
21- pull-requests : write
22- id-token : write # claude-code-action mints its GitHub token via OIDC
21+ pull-requests : write # posts review comments via the default GITHUB_TOKEN
2322 steps :
2423 - name : Checkout
2524 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3029 uses : anthropics/claude-code-action@806af32823ef69c8ef357086c573a902af641307 # v1
3130 with :
3231 anthropic_api_key : ${{ secrets.ANTHROPIC_API_KEY }}
32+ # Post as the workflow's own GITHUB_TOKEN. Without this the action
33+ # falls back to minting a GitHub App token via OIDC, which requires
34+ # the Claude GitHub App installed on the repo and fails otherwise
35+ # ("Could not fetch an OIDC token").
36+ github_token : ${{ secrets.GITHUB_TOKEN }}
3337 track_progress : true
3438 prompt : |
3539 REPO: ${{ github.repository }}
You can’t perform that action at this time.
0 commit comments