Skip to content

Add claude GitHub actions 1774967308733#177

Closed
jbohnslav wants to merge 2 commits intomasterfrom
add-claude-github-actions-1774967308733
Closed

Add claude GitHub actions 1774967308733#177
jbohnslav wants to merge 2 commits intomasterfrom
add-claude-github-actions-1774967308733

Conversation

@jbohnslav
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e938652cc5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +15 to +19
# Optional: Filter by PR author
# if: |
# github.event.pull_request.user.login == 'external-contributor' ||
# github.event.pull_request.user.login == 'new-developer' ||
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Skip Claude review job for forked pull requests

Removing the job-level trust gate means claude-review now runs for every pull_request event, including PRs from forks. For forked PRs, GitHub does not expose repository secrets to this workflow, so the claude_code_oauth_token input is empty and this job will fail instead of reviewing, leaving external contributions with a persistent failing check unless you add a same-repo/trusted-author condition.

Useful? React with 👍 / 👎.

Comment on lines +16 to +19
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Restrict @claude triggers to trusted human users

This condition now matches any issue/comment/review body containing @claude without checking user type or repository role, so public repo outsiders (and bots) can repeatedly trigger the workflow. Even if the action later refuses to act, each trigger still spins up a runner and consumes CI budget; the removed sender.type and association checks previously blocked this at the workflow gate.

Useful? React with 👍 / 👎.

@jbohnslav
Copy link
Copy Markdown
Owner Author

Closing — the /install-github-app command already set the CLAUDE_CODE_OAUTH_TOKEN secret, which is what the existing workflows reference. No workflow changes needed.

@jbohnslav jbohnslav closed this Mar 31, 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.

1 participant