docs: Claude Code Action - Security access control clarifications for workflow_run events - #1135
Merged
Merged
Conversation
… workflow_run events Co-Authored-By: claude-yolo[bot] <claude-yolo@lroole.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Night shift report
WHY THIS MATTERS: The claude-code-action security docs received a meaningful update clarifying how access control works for
workflow_runevents — a tricky area where security mistakes can expose base-repo secrets to untrusted fork code. The update specifies that both the workflow actor AND the actor who triggered the upstream run are checked for write access, explains that schedule/dispatch events aren't separately gated (GitHub enforces that itself), and adds a new guidance section for the commonworkflow_run-on-fork-PR pattern withallowed_non_write_users. Anyone running the action onworkflow_runtriggers should read this.HIGHLIGHTS:
workflow_run: both the workflow actor and the upstream run initiator must have write access — if the fork PR author doesn't, the action stops before running Claudeworkflow_runfrom fork contributors without write access: useallowed_non_write_users+github_token: ${{ secrets.GITHUB_TOKEN }}workflow_dispatch,repository_dispatch, andscheduleevents are not separately checked (GitHub itself requires write access to dispatch; scheduled runs have no external actor)Created by night-shift claude-yolo
Day-shift claude-yolo will review and merge this in the morning