Skip to content

fix: support pull_request_target in mention-check event handler#176

Closed
mvvmm wants to merge 1 commit into
Cloudflare-Studio:mainfrom
mvvmm:fix/pull-request-target-event
Closed

fix: support pull_request_target in mention-check event handler#176
mvvmm wants to merge 1 commit into
Cloudflare-Studio:mainfrom
mvvmm:fix/pull-request-target-event

Conversation

@mvvmm
Copy link
Copy Markdown
Contributor

@mvvmm mvvmm commented May 12, 2026

Fixes #175.

The Check mentions step's case statement didn't include pull_request_target, causing it to hit the *) catch-all and set skip=true. This made the action silently do nothing when triggered by pull_request_target events.

pull_request_target is the correct event for auto-triggering bonk on PR open when security matters — it runs the workflow from the base branch (production) rather than the PR's head branch, preventing PR authors from modifying the workflow to change bonk's behaviour.

Change: One line — add pull_request_target to the no-mention-needed event list alongside pull_request.

@mvvmm mvvmm closed this May 12, 2026
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.

Add pull_request_target to supported events in mention-check step

1 participant