Skip to content

ci: add the Claude PR review - #66

Merged
g-carre merged 1 commit into
mainfrom
ci/add-claude-code-review
Aug 14, 2026
Merged

ci: add the Claude PR review#66
g-carre merged 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: discovery staying read-only on the hardware, the privileged: true surface not widening silently, and DiscoveredPhysicalDisk names staying deterministic across reboots so the inventory does not churn or duplicate. 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
@g-carre
g-carre merged commit 0463630 into main Aug 14, 2026
8 checks passed
@g-carre
g-carre deleted the ci/add-claude-code-review branch August 14, 2026 10:37
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.

2 participants