Merged
Conversation
Reusable workflow for WooCommerce extension repos using anthropics/claude-code-action with Claude Opus 4.6. Gated to @woocommerce/happiness-engineers team members. Reviews PRs for backwards compatibility, security, WooCommerce best practices, PHP 8.x compat, and performance. Supports incremental follow-up reviews on subsequent pushes. Linear: QAO-392 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds pull_request trigger so the workflow runs on this repo's own PRs. Hardcodes mahangu as allowed user (bypasses team check). Adds fallback defaults for inputs that are empty on pull_request trigger. Revert this commit before merging to main. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The action uses OIDC for GitHub token setup and fails without this permission. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Removes pull_request trigger and hardcoded user check. Restores team membership check via GitHub API. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Falls back to team API check for all other users. Revert before merging to main. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When GH_TOKEN_OVERRIDE secret is provided, skips the Anthropic OIDC workflow validation that requires the workflow to exist on the default branch. This allows testing on PR branches. Remove GH_TOKEN_OVERRIDE from callers once workflow is merged to trunk. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Uses GH_TOKEN_OVERRIDE_MAHANGU to bypass OIDC workflow validation. Revert this commit before merging to main. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Removes pull_request trigger, hardcoded users, and PAT override. Workflow is now production-ready for merge to trunk. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Checks happiness-engineers and qualityops teams by default. Loops through comma-separated team slugs, allows if member of any. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Cancels in-progress review if a new push arrives on the same PR. Prevents unnecessary API costs from stacked runs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Replace team membership check (GITHUB_TOKEN can't read org teams) with hardcoded allowed_users list (mahangu, anant1811 for testing) - Restrict Read tool to /home/runner/work/** to prevent reading /proc/self/environ (secret exfiltration risk) - Quote all RUNNER_TEMP paths 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.
Changes proposed in this Pull Request
Adds a reusable AI code review workflow for WooCommerce repos, powered by Claude (Opus 4.6) via anthropics/claude-code-action.
Part of the AI Code Reviews for wpcom/MC/Woo project. See QAO-392.
What it does
Security review
Caller workflow example
How to test the changes in this Pull Request
Testing that has already taken place
Workflow reviewed by 5 automated agents: action compatibility, prompt quality, shell correctness, security, and bash security. All critical findings fixed. OIDC workflow validation requires merge to default branch before end-to-end testing.