ci: install Claude Code Action workflow (@claude in issues / PRs)#32
Open
SDS-Mode wants to merge 1 commit into
Open
ci: install Claude Code Action workflow (@claude in issues / PRs)#32SDS-Mode wants to merge 1 commit into
SDS-Mode wants to merge 1 commit into
Conversation
Adds the canonical .github/workflows/claude.yml from anthropics/claude-code-action so @claude mentions in issues, PR comments, and reviews trigger the action. Direct push to main was blocked by the repository's "Changes must be made through a pull request" ruleset, so the auto-installer (\`/install-github-app\`) created this PR instead. After merging, ensure the ANTHROPIC_API_KEY repository secret is set (Settings → Secrets and variables → Actions → New repository secret). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.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.
Summary
Adds the canonical Claude Code Action workflow file. After merge, mentioning `@claude` in an issue, PR comment, or PR review triggers Claude Code with full repo context.
The auto-installer (`/install-github-app`) tried to push `.github/workflows/claude.yml` directly to `main` and was blocked by the repository ruleset:
This PR carries the same file the installer would have committed, so merging it completes the install.
File contents
Verbatim from `anthropics/claude-code-action/examples/claude.yml`:
Required after merge
Set the `ANTHROPIC_API_KEY` repository secret:
Without it, the workflow will fail loudly on first invocation rather than do anything dangerous.
Security note
The workflow has no `run:` blocks that interpolate untrusted input — the only step is `uses: anthropics/claude-code-action@v1`. The `contains()` calls in the `if:` expression are boolean evaluation, not shell interpolation. Safe per the GitHub Actions injection guide.
Test plan
🤖 Generated with Claude Code