Compare commits

...

2 commits

Author SHA1 Message Date
Adam Moussa
7e03d635fb
Add QEMU support to CI CDK workflow for cross-platform Docker builds (#28)
Mirrors the enable-qemu input from cd-cdk.yaml. Required when CDK
stacks use PythonFunction or other Docker-bundled constructs targeting
arm64 Lambda on x86 CI runners.
2026-05-13 22:08:58 +00:00
Adam Moussa
58447f6d86
Remove custom Claude Code Review workflow (#27)
Replaced by the official Claude Code GitHub App, which handles
@claude mentions, review requests, and PR triggers natively.
2026-05-13 17:40:17 -04:00
2 changed files with 7 additions and 85 deletions

View file

@ -23,6 +23,10 @@ on:
description: "Run cdk synth"
type: boolean
default: true
enable-qemu:
description: "Enable QEMU for cross-platform Docker builds (arm64 on x86 runners)"
type: boolean
default: false
run-sam-validate:
description: "Run sam validate --lint (for Node.js SAM repos)"
type: boolean
@ -39,6 +43,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
if: ${{ inputs.enable-qemu }}
- uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}

View file

@ -1,85 +0,0 @@
name: Claude Code Review
on:
workflow_dispatch:
inputs:
repository:
description: "Target repository (e.g., Sea-Haven-Industries/meal-order-manager)"
required: true
type: string
pr_number:
description: Pull request number to review
required: true
type: string
workflow_call:
inputs:
direct_call:
description: Bypass event filtering (set automatically for reusable workflow callers)
type: boolean
default: true
secrets:
anthropic_api_key:
required: true
permissions:
contents: read
pull-requests: write
issues: read
id-token: write
jobs:
claude-review:
if: >-
github.event_name == 'workflow_dispatch' ||
inputs.direct_call == true
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Generate GitHub App token
if: github.event_name == 'workflow_dispatch'
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.CLAUDE_CI_APP_ID }}
private-key: ${{ secrets.CLAUDE_CI_APP_PRIVATE_KEY }}
owner: Sea-Haven-Industries
- uses: actions/checkout@v4
with:
repository: ${{ inputs.repository || github.repository }}
token: ${{ steps.app-token.outputs.token || github.token }}
fetch-depth: 1
- uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.anthropic_api_key || secrets.ANTHROPIC_API_KEY }}
github_token: ${{ steps.app-token.outputs.token || github.token }}
allowed_bots: '*'
trigger_phrase: '@claude'
prompt: |
REPO: ${{ inputs.repository || github.repository }}
PR NUMBER: ${{ inputs.pr_number || github.event.pull_request.number || github.event.issue.number }}
Review this pull request. Only comment on:
- Bugs or logic errors
- Security vulnerabilities (hardcoded secrets, injection, OWASP top 10)
- Breaking changes or regressions
- Sea Haven convention violations: kebab-case resource names, secrets in AWS Secrets Manager (not env vars or SSM), Lambda defaults (Python 3.12+/Node 22.x, arm64, explicit 60-day log retention)
Do NOT comment on:
- Style, formatting, or naming preferences
- Minor refactoring suggestions
- Performance unless it is a measurable regression
- Things that are already consistent with the existing codebase
Limit to 5 inline comments maximum. If the PR looks good, leave a single top-level comment saying so — do not force issues where there are none.
Use `gh pr comment` for top-level feedback.
Use `mcp__github_inline_comment__create_inline_comment` (with `confirmed: true`) for specific code issues.
Only post GitHub comments — do not submit review text as messages.
claude_args: |
--allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"
env:
GH_REPO: ${{ inputs.repository || github.repository }}
GH_TOKEN: ${{ steps.app-token.outputs.token || github.token }}