Skip to content

Allow the posthog-eu bot to trigger the org Claude review - #4

Merged
nnx0r merged 1 commit into
mainfrom
ci/claude-review-allow-posthog-bot
Sep 13, 2026
Merged

nnx0r merged 1 commit into
mainfrom
ci/claude-review-allow-posthog-bot

Conversation

@nnx0r

@nnx0r nnx0r commented Sep 13, 2026

Copy link
Copy Markdown
Member

Why

PostHog's self-driving fixes open PRs as the posthog-eu GitHub App. anthropics/claude-code-action rejects any bot actor that isn't in allowed_bots (default: empty). This workflow is required on every Devilos repo through the "Require org CI" ruleset, so the rejection blocks those PRs from merging:

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

Seen on devilos/uw-v4 #345, #346, #347 and #348. Re-running doesn't help, because a re-run keeps posthog-eu[bot] as the actor (uw-v4 run 34747815638, attempt 2).

Change

Adds allowed_bots: 'posthog-eu' to the review step, naming the one bot explicitly rather than '*'.

Checked against the action source:

  • allowed_bots matching lowercases and strips a trailing [bot], so posthog-eu matches posthog-eu[bot].
  • Bot actors skip the write-permission check, so no other input is needed.

devilos/uw-v4#350 made the same change to uw-v4's own copy of the review workflow.

After merge

Required workflows run from this repo's main, so new PR events pick up the fix. Each blocked uw-v4 PR needs a new run to clear the failed check: a new push, or closing and reopening it.

🤖 Generated with Claude Code

PostHog's self-driving fixes open PRs as the posthog-eu GitHub App.
claude-code-action rejects any bot actor missing from allowed_bots, and
because this workflow is a required merge gate, every one of those PRs was
blocked with "Workflow initiated by non-human actor". Allow that one bot by
name instead of '*'.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@nnx0r
nnx0r merged commit 0cdc9df into main Sep 13, 2026
3 checks passed
@nnx0r
nnx0r deleted the ci/claude-review-allow-posthog-bot branch September 13, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant