Skip to content

Commit faaf10a

Browse files
update readme
1 parent da78c5e commit faaf10a

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ workflows are self-contained in this repository under `.github/workflows/`.
1414
| Trigger | Workflow | What runs | Purpose |
1515
| -------------------------------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------- | -------------------------------- |
1616
| Push to any branch except `main` | `feature.yml` | `hadolint` Dockerfile lint, Trivy config scan, `actionlint`, GitGuardian secret scan | Fast feedback during development |
17-
| PR into `main` | `pr.yml` | Build amd64 image, Trivy scan (HIGH/CRITICAL), SARIF upload, smoke test | Gate — must pass before merge |
17+
| PR into `main` | `pr.yml` | Build amd64 image, Trivy scan (HIGH/CRITICAL), SARIF upload, smoke test, Claude code review (on open) | Gate — must pass before merge |
1818
| Push tag `*.*` | `release.yml` | Verify tag is on `main`, build multi-arch (`linux/amd64`, `linux/arm64`), push to YC CR, SBOM + SLSA provenance, cosign sign | Release |
1919

2020
### Design Goals
@@ -37,13 +37,25 @@ workflows are self-contained in this repository under `.github/workflows/`.
3737
of `main`, preventing releases from arbitrary branches.
3838
- **Image Signing** — every release image is signed with **cosign** using keyless OIDC via GitHub Actions.
3939

40+
### Claude Code Review
41+
42+
- **`claude-review`** (part of `pr.yml`) — runs once, when a PR into `main` is **opened**, and posts an automated
43+
code review (top-level + inline comments via `gh pr comment` / inline PR comments) using
44+
[`anthropics/claude-code-action`](https://github.com/anthropics/claude-code-action).
45+
- Authenticates through **OpenRouter** rather than a direct Anthropic API key: the action's `ANTHROPIC_BASE_URL` is
46+
redirected to `https://openrouter.ai/api`, using `OPENROUTER_API_KEY` as the credential. This is an unofficial but
47+
working setup (OpenRouter exposes an Anthropic-compatible endpoint) — not a first-class integration, so it can break
48+
on action/CLI updates.
49+
- Does **not** gate the merge — it's advisory feedback only, separate from the `build-and-scan` job.
50+
4051
### Secrets & Variables
4152

4253
| Name | Type | Source | Purpose |
4354
| -------------------- | -------- | ---------------------------- | -------------------------------------------------------------- |
4455
| `YC_REGISTRY_ID` | variable | `vars.YC_REGISTRY_ID` | Yandex Container Registry ID |
4556
| `YC_CR_SA_AUTH_JSON` | secret | `secrets.YC_CR_SA_AUTH_JSON` | YC service account JSON key for registry login |
4657
| `GITHUB_TOKEN` | secret | auto-provided | Authenticated GitHub API requests for `mise` package downloads |
58+
| `OPENROUTER_API_KEY` | secret | `secrets.OPENROUTER_API_KEY` | OpenRouter token used to authenticate the Claude PR review |
4759

4860
### Cache Strategy
4961

0 commit comments

Comments
 (0)