Repository navigation
ci: require check-managed-files sync verification in ci-status - #6512
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Claude finished @kyle-sexton's task in 1m 58s —— View job Security review complete
Scope: Trust-boundary review (the piece static analysis/zizmor doesn't cover, since this job explicitly replaces code-owner review for standards-sync PRs):
Instruction-surface check: the diff is purely additive (no rule, allowlist, or gate is removed, narrowed, or softened), so the instruction-exception-register lens doesn't apply here. No security issues found in the reviewed file. The change is a workflow addition with least-privilege permissions, a pinned action reference, a |
|
Claude finished @kyle-sexton's task in 4m 33s —— View job Claude's review
Ran the Posted 2 inline findings:
Everything else checked out: the new job's Note: the PR body's test-plan items ( |
|
claude-security-review has reviewed this pull request through 47289d3; a later push is reviewed from there. |
|
claude-review has reviewed this pull request through 47289d3; a later push is reviewed from there. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Claude finished @kyle-sexton's task in 38s —— View job Claude's review
Scope: incremental — only the change in @@ -2472,6 +2472,7 @@ jobs:
check-managed-files:
+ needs: [select-tests]
# The contract-only gate, verbatim, and the draft gate (see `ci-status`).This is commit Verification:
No new findings. The only other open item from the prior review — whether |
|
Claude finished @kyle-sexton's task in 45s —— View job Security review complete
Scope: incremental review since check-managed-files:
+ needs: [select-tests](This addresses the prior code-review lane's finding that Analysis: this is a pure job-ordering edge —
No security-relevant surface in this increment (skip-gate condition 2). No security issues found. |
…6518) No related issue: follow-up to the claude-code-plugins trust-root rollout so standards-sync PRs stop needing code-owner review for synced data files > **Gate met:** #6514 merged, pinning the required `check-managed-files` job (inside `ci-status` in `.github/workflows/pr-require-checks.yml`) to ci-workflows v0.39.1. Merging still needs code-owner review, since this PR edits `.github/CODEOWNERS`. ## Summary The org `trust-root` ruleset requires code-owner review for any path `.github/CODEOWNERS` assigns (github-iac `OrgRulesets.cs:182`, `RequireCodeOwnerReview = true`, with `RequiredApprovingReviewCount = 0` so only owned paths need approval). `/.github/standards/** @kyle-sexton` owns every synced standards file, so each standards-sync PR waits on a human review even when it touches only synced data. ## Fix Add owner-less entries after `/.github/standards/**` (last match wins; an entry with no owner unowns the path) for the files that are both synced by the standards sync manifest and outside `.github/workflows/`: - `.github/standards/github-actions-conventions/vocabulary.json` - `.github/standards/github-actions-conventions/vocabulary.schema.json` - `.github/standards/pyright/pyrightconfig.json` - `.github/standards/runner-policy/package-lock.json` - `.github/standards/runner-policy/package.json` - `.github/standards/runner-policy/policy.json` - `.github/standards/runner-policy/policy.schema.json` - `.github/standards/runner-policy/repository-policy.schema.json` Still owned: every `.github/workflows/**` file (including `pr-review-hosted.yml`, `pr-review-security-hosted.yml`, `pr-check-managed-files-hosted.yml`), `.github/CODEOWNERS`, `runner-policy.mjs`, `trusted-actors.json`, `trusted-actors.schema.json`. The trust-root paths list in `docs/conventions/pr-pipeline/README.md` is updated to match. ## Verification - Each unowned path appears in the `paths:` list of `.github/workflows/pr-check-managed-files-hosted.yml` and in `melodic-software/standards` `distribution/sync-manifest.yml` (main `ee50a0e`) under the `github-actions-conventions`, `pyright` and `runner-policy` components, all three in the claude-code-plugins `managed:` list. - `gh api repos/melodic-software/claude-code-plugins/codeowners/errors?ref=fix/codeowners-unown-synced-standards` returns `{"errors":[]}`. - A last-match simulation over every file under `.github/standards/` shows the 8 paths above unowned and `runner-policy.mjs` plus both trusted-actors files owned by `@kyle-sexton`. - The repo has no CODEOWNERS test or lint under `scripts/` or `.github/`; `markdownlint-cli2` passes on the edited README. ## Related - github-iac `OrgRulesets.cs` `trust-root` ruleset; ADR 0007 amendment extending it to claude-code-plugins. - The `check-managed-files` job in `.github/workflows/pr-require-checks.yml` is required through `ci-status` (since #6512). It fails a hand edit of any sync-managed file and passes a standards-sync PR only when every commit is the sync App's and the content matches the manifest; that check replaces code-owner review for these files. The synced `pr-check-managed-files-hosted.yml` runs the same guard advisory and paths-filtered. - #6512 (made the guard required), #6514 (repinned it to ci-workflows v0.39.1). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
No related issue: org actions-conventions rollout; adopts the ci-workflows v0.39.0 check-managed-files sync-verify mode as a required gate.
Summary
Adds a
check-managed-filesjob to.github/workflows/pr-require-checks.ymland lists it inci-status.needs, soci-statusfails when the job fails. On a standards-sync pull request (melodic-standards-sync[bot], headchore/standards-sync, same repository) the action verifies each commit's identity and that the PR content equals sync-manifest apply at standards main HEAD. That check replaces code-owner review of sync PRs. On every other pull request it rejects hand-edits of managed files.Fix
melodic-software/ci-workflows/.github/actions/check-managed-files@6ba73b97b058602c4dd2bb6e2cce234d11011787 # v0.39.0, pinned by full SHA and called from a CODEOWNERS-protected workflow file.contents: readandpull-requests: read. Checkout usesfetch-depth: 0andpersist-credentials: false.ci-statuscarries the recorded verdict forward on label flips and body edits, and a draft stays red. On merge-group, schedule and dispatch runs there is no PR diff, so the job passes.ci-statusstays the only required check and keeps its name.pr-check-managed-files-hosted.yml(advisory, paths-filtered, v0.38.2) is unchanged. It is a standards-managed file and its retirement is decided upstream.Verification
actionlinton the file: clean.zizmor --persona=regular(the persona CI uses): no findings.scripts/check-lane-coverage.sh --check: all 9 lanes reachable fromci-status.needs.scripts/check-docs-only-gate.sh --check: passes. The new job's condition is the sanctioned draft-gate form.ci-fail-a-draft,ci-hold-merge-group,ci-ordered-skips,check-docs-only-gate,check-lane-coverage,workflow-self-paths,lint-shell-filter,check-conformance-registry,plan-test-lanesandcheck-docs-only(*.test.sh), pluscheck-conformance-registry.sh --check.Related
6ba73b97): check-managed-files sync-verify mode..github/workflows/pr-check-managed-files-hosted.yml(standardsmanaged-files-guard-callercomponent).🤖 Generated with Claude Code