Skip to content

ci: add the Claude PR review - #67

Open
ezekiel-alexrod wants to merge 1 commit into
mainfrom
ci/add-claude-code-review
Open

ci: add the Claude PR review#67
ezekiel-alexrod wants to merge 1 commit into
mainfrom
ci/add-claude-code-review

Conversation

@ezekiel-alexrod

Copy link
Copy Markdown
Contributor

This repo had no Claude review. It adds the two shared callers from
scality/workflows pinned by digest (v2.9.1): claude-code-review on human
pull requests, and claude-code-dependency-review on Renovate branches through
pull_request_target so the bump job gets the secrets it needs.

ACTIONS_APP_PRIVATE_KEY is passed explicitly to both jobs. A reusable workflow
inherits no secret, and without that key the shared workflow skips the agent-hub
marketplace, the scality-skills plugin never loads, and the review runs for a few
seconds and posts nothing. Every other repo in the fleet had that gap; it is being
fixed in parallel.

The skill reads its criteria from .claude/REVIEW.md, added here and written from
this codebase rather than from a template: CRL freshness through a RequeueAfter derived from nextUpdate, the revoked-serial set surviving regeneration, Issuer versus ClusterIssuer scoping, and CA private keys never logged or copied out of their Secret. The file also lists what not
to flag, so the review stays off ground the linters already cover.

The organisation secrets and the ACTIONS_APP_ID variable are already granted to
this repo, so nothing else is needed.

Note: this PR creates review.yml, and claude-code-action refuses to run when the
calling workflow differs from the default branch. So it cannot review itself — the
first real review will be the next PR. Validated end to end on
scality/image-cache#7, where the check run was posted and the criteria file was read.

Calls the shared review workflows from `scality/workflows`, pinned by digest:
`claude-code-review` on human pull requests, `claude-code-dependency-review` on
Renovate branches through `pull_request_target` so the bump job gets the secrets
it needs.

`ACTIONS_APP_PRIVATE_KEY` is passed explicitly — a reusable workflow inherits no
secret, and without that key the shared workflow skips the agent-hub marketplace,
the `scality-skills` plugin never loads and the review silently does nothing.

The skill reads its criteria from `.claude/REVIEW.md`, added here: what this repo
is, the invariants worth failing a review over, and the findings the linters
already own.
@ezekiel-alexrod
ezekiel-alexrod requested a review from a team as a code owner July 28, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant