Open
Conversation
Extracts the Claude Code agent workflow (triggered by @claude mentions in PRs and reviews) as a reusable workflow_call workflow. Source: identical workflow in loft-enterprise and vcluster-pro. Changes from source: - SHA-pinned actions/checkout and anthropics/claude-code-action - Added persist-credentials: false on checkout - Parameterized ANTHROPIC_API_KEY as a workflow_call secret - Scoped to PR events only (issue_comment, review_comment, review) - Dropped issues trigger — not needed for current use cases - Write permissions for contents and pull-requests so Claude can respond - Removed id-token: write (not needed with direct API key) - Removed redundant additional_permissions input - No fork guard needed — claude-code-action checks actor write access
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.
Summary
workflow_callworkflowloft-enterpriseandvcluster-pro(triggered by@claudementions in PRs and reviews)issue_comment,pull_request_review_comment,pull_request_reviewactions/checkout@v6.0.2andanthropics/claude-code-action@v1persist-credentials: falseon checkoutANTHROPIC_API_KEYas aworkflow_callsecret (anthropic-api-key)contentsandpull-requestsso Claude can respond and pushclaude-code-actionvalidates actor has write access before runningCaller example
Test plan
claude/v1after mergePart of the Phase 3 GitHub Actions centralization effort.