-
Notifications
You must be signed in to change notification settings - Fork 67
Debug GitHub Actions skipping on Claude tag #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@claude
is this safe chage to give permission internal contributors to trigger claude github actions?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Claude finished @piatoss3612's task in 1m 14s —— View job
Security Analysis
TL;DR: No, this change is NOT safe. It introduces a critical security vulnerability that allows any GitHub user to trigger the Claude workflow with your repository's secrets and permissions.
Critical Security Vulnerability
The current implementation has a fundamental flaw: it checks WHERE the PR came from, not WHO is commenting. This creates an authorization bypass that allows any GitHub user to trigger Claude on internal PRs.
Attack Scenario
chainapsis/keplr-example(not a fork)@claudeon that PRgithub.event.pull_request.head.repo.full_name == github.repositoryis trueauthor_associationcheck is completely bypassed via the OR conditionWhy This Happens
The logic uses OR conditions:
(author is OWNER/MEMBER/COLLABORATOR) OR (PR is from same repo)This means if EITHER condition is true, the workflow runs. The second condition doesn't care who's commenting.
Additional Technical Issue
For
issue_commentevents (line 19),github.event.pull_requestdoesn't exist in the event payload. You're checkinggithub.event.pull_request.head.repo.full_name, but this object is only available forpull_request,pull_request_review, andpull_request_review_commentevents.For
issue_commenton a PR, you need to:github.event.issue.pull_request.urlto detect if it's a PRReference: GitHub issue_comment event payload docs
Recommended Fix
Use AND logic to require BOTH a valid association AND same-repo for CONTRIBUTOR level:
This ensures:
Alternative Approach
If private organization members truly appear as CONTRIBUTOR, consider:
My Assessment
Do not merge this PR. The security risk outweighs the convenience. I recommend addressing the root cause (organization member permissions) rather than loosening the security model in a way that creates vulnerabilities.