Skip to content

ci: let claude-code-review run on Dependabot pull requests - #408

Merged
dubadub merged 1 commit into
mainfrom
chore/claude-review-dependabot
Aug 7, 2026
Merged

ci: let claude-code-review run on Dependabot pull requests#408
dubadub merged 1 commit into
mainfrom
chore/claude-review-dependabot

Conversation

@dubadub

@dubadub dubadub commented Aug 7, 2026

Copy link
Copy Markdown
Member

claude-code-review has never actually reviewed a dependency bump. Every Dependabot PR fails at startup with:

Action failed with error: Workflow initiated by non-human actor: dependabot (type: Bot).
Add bot to allowed_bots list or use '*' to allow all bots.

This allows dependabot[bot] by name rather than * — cookcli is public, and * would let any other installed App invoke the action with a prompt it controls.

One manual step is still needed

GitHub does not pass Actions secrets to Dependabot-triggered runs; they read from a separate Dependabot secret store. Right now:

  • CLAUDE_CODE_OAUTH_TOKEN exists under Actions secrets ✅
  • there are no Dependabot secrets at all ❌

So until CLAUDE_CODE_OAUTH_TOKEN is also added under Settings → Secrets and variables → Dependabot, the token resolves to an empty string and the job will still fail — just with an auth error instead of the bot error. It fails today either way, so this is not a regression, but the check only goes green once that secret exists.

Worth knowing: once it works, every dependency bump consumes Claude usage.

The action rejects non-human actors unless they are listed, so every
Dependabot PR failed at startup with "Workflow initiated by non-human
actor: dependabot (type: Bot)" and was never actually reviewed.

Allows dependabot[bot] by name rather than "*", so that on a public repo
another installed App cannot invoke the action with a prompt it controls.

Requires CLAUDE_CODE_OAUTH_TOKEN to also exist as a Dependabot secret:
GitHub does not expose Actions secrets to Dependabot-triggered runs, and
the repo currently has no Dependabot secrets, so the token resolves empty
until one is added.
@dubadub
dubadub merged commit 226f2a5 into main Aug 7, 2026
6 checks passed
@dubadub
dubadub deleted the chore/claude-review-dependabot branch August 7, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant