Skip to content

chore: Restrict bonk workflows to org members#6564

Open
erezrokah wants to merge 2 commits intocloudflare:mainfrom
erezrokah:claude/bonk-author-check
Open

chore: Restrict bonk workflows to org members#6564
erezrokah wants to merge 2 commits intocloudflare:mainfrom
erezrokah:claude/bonk-author-check

Conversation

@erezrokah
Copy link
Copy Markdown

Add author_association check to issue_comment triggers in bonk and bigbonk workflows to prevent external users from invoking bonk with write permissions to the repository.

Add author_association check to issue_comment triggers in bonk and
bigbonk workflows to prevent external users from invoking bonk with
write permissions.
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 11, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@erezrokah erezrokah changed the title fix: Restrict bonk workflows to org members chore: Restrict bonk workflows to org members Apr 11, 2026
@erezrokah
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@erezrokah erezrokah marked this pull request as ready for review April 11, 2026 14:45
@erezrokah erezrokah requested review from a team as code owners April 11, 2026 14:45
@erezrokah erezrokah requested review from Copilot and emily-shen April 11, 2026 14:45
github-actions bot added a commit that referenced this pull request Apr 11, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR tightens access control for the “bonk” automation by restricting who can invoke the workflows via comment commands, reducing the risk of external users triggering write-permission actions.

Changes:

  • Add an author_association gate to the bonk workflow job if: condition.
  • Add an author_association gate to the bigbonk workflow job if: condition.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/bonk.yml Adds an author_association check to restrict command invocation to trusted users.
.github/workflows/bigbonk.yml Adds an author_association check to restrict command invocation to trusted users.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

jobs:
bonk:
if: github.event.sender.type != 'Bot' && (contains(github.event.comment.body, '/bonk') || contains(github.event.comment.body, '@ask-bonk'))
if: github.event.sender.type != 'Bot' && (contains(github.event.comment.body, '/bonk') || contains(github.event.comment.body, '@ask-bonk')) && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'COLLABORATOR')
jobs:
bonk:
if: github.event.sender.type != 'Bot' && contains(github.event.comment.body, '/bigbonk')
if: github.event.sender.type != 'Bot' && contains(github.event.comment.body, '/bigbonk') && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'COLLABORATOR')
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.

2 participants