Skip to content

Commit 89b0e98

Browse files
authored
fix: skip Claude review for Dependabot PRs instead of trying to approve (#14)
GITHUB_TOKEN cannot approve PRs (org policy disables write permissions for Actions). Generating the app token requires HOTDATA_AUTOMATION_PRIVATE_KEY which is inaccessible in Dependabot-triggered runs. Simply succeed so the required status check passes; PR approval is handled separately. Co-authored-by: Eddie A Tejeda <669988+eddietejeda@users.noreply.github.com>
1 parent 9746e81 commit 89b0e98

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ jobs:
2222
with:
2323
fetch-depth: 1
2424

25-
- name: Auto-approve Dependabot bump
25+
- name: Skip review for Dependabot bump
2626
if: github.event.pull_request.user.login == 'dependabot[bot]'
27-
run: gh pr review ${{ github.event.pull_request.number }} --approve --body "Automated dependency bump — auto-approved."
28-
env:
29-
GH_TOKEN: ${{ github.token }}
27+
run: echo "Dependabot bump — skipping Claude review."
3028

3129
- name: Generate GitHub App token
3230
if: github.event.pull_request.user.login != 'dependabot[bot]'

0 commit comments

Comments
 (0)