Skip to content

Restrict @claude mention trigger to jnasbyupgrade - #2

Open
jnasbyupgrade wants to merge 2 commits into
mainfrom
remove-claude-workflows
Open

Restrict @claude mention trigger to jnasbyupgrade#2
jnasbyupgrade wants to merge 2 commits into
mainfrom
remove-claude-workflows

Conversation

@jnasbyupgrade

@jnasbyupgrade jnasbyupgrade commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Keep claude.yml and claude-code-review.yml — Claude Code review output not reaching GitHub was a separate bug, being fixed under a different PR (not a reason to remove the workflows).
  • Restrict claude.yml (the @claude mention responder) to github.actor == 'jnasbyupgrade'. Previously this workflow had no actor check at all: any GitHub user or bot commenting/opening an issue containing @claude would cause it to actually execute using the org's Claude Code OAuth token and a repo-scoped GITHUB_TOKEN.
  • claude-code-review.yml is unchanged — it already gated on the PR head owner being jnasbyupgrade.

Why

An org-wide audit found claude-code-review.yml correctly restricted to jnasbyupgrade-owned PRs, but claude.yml had no equivalent restriction. This closes that gap without removing the workflows.

Test plan

  • Confirm @claude mentions from jnasbyupgrade still trigger the workflow
  • Confirm @claude mentions from any other account (e.g. a bot or external commenter) are skipped

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: df5efac4-43dc-492c-a700-d6eca2c3531d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

claude.yml (the @claude mention responder) had no actor check at all —
any GitHub user or bot could comment/open an issue containing "@claude"
and it would actually execute using the org's Claude Code OAuth token
and a repo-scoped GITHUB_TOKEN. claude-code-review.yml already gated on
the PR head owner; this brings the mention-trigger workflow in line by
requiring github.actor == 'jnasbyupgrade'.
@jnasbyupgrade
jnasbyupgrade force-pushed the remove-claude-workflows branch from 454995f to 737cb59 Compare July 30, 2026 23:32
@jnasbyupgrade jnasbyupgrade changed the title Remove Claude Code GitHub workflows Restrict @claude mention trigger to jnasbyupgrade Jul 30, 2026
Condense to what's needed: this gates @claude to a single trusted
account rather than just matching comment text.
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