Repository navigation
ci: split the PR convention lockstep into a PR copy check and a pin audit - #741
Conversation
The two scheduled audits read private repositories through the standards-sync App token. Run their jobs in the main-only standards-sync environment (deployment: false), whose secrets carry the App key, so the repository-level STANDARDS_SYNC_APP_* secrets can be deleted. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01T7GukBojtE99rLCPY7Cw3R
…udit The STANDARDS_SYNC_APP_* secrets move to the main-only standards-sync environment, which a pull-request job cannot enter, and the caller-pin scan needs that App token to read five private gate callers. - pr-require-checks.yml: verify-pr-convention-lockstep becomes check-pr-convention-copies. It keeps gawk, the hermetic tests and the copy check, reads only public repositories with the workflow token, and no longer references the App secrets. ci-status waits on the new id. - maintenance-audit-pr-convention-pins.yml runs the pin scan in the standards-sync environment on a push to main touching the component, weekly (Wednesday 07:29 UTC) and on dispatch, and fails on drift. - lockstep-drift.mjs takes a mode, copies or pins; npm scripts lint:pr-convention-copies and audit:pr-convention-pins replace lint:pr-convention-lockstep. A tokenless pin scan fails up front. - vocabulary.json gains maintenance function audit-pr-convention-pins. - ADR-0008 records the split; the component README and CI posture describe it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01T7GukBojtE99rLCPY7Cw3R
A weekly scheduled failure is easy to miss, so the pin audit also keeps one issue, found by its fixed title "PR convention pin drift": opened when drift appears and none is open, rewritten by each failing run, and closed by the first clean run. A run that could not scan (no token, a crash without findings) leaves the issue alone. The issue work runs in a separate report job holding only issues: write, so that permission never shares a job with the App token. README's CI posture and AGENTS.md's review rule, which said no workflow here maintains an issue, now name this one exception. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01T7GukBojtE99rLCPY7Cw3R
…in audit" This reverts commit 91bf935.
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 33s —— View job Security Review (
|
|
Claude finished @kyle-sexton's task in 3m 56s —— View job Code review complete
Scope: reviewed the full diff ( No high-signal findings. This is a clean mechanical split:
Not independently verified (author-claimed in the PR body, not re-run by this review): the live pin scan against real tokens, One non-blocking observation, left out of the findings list per the high-signal bar (no concrete failure scenario, just a documentation-completeness question): |
|
claude-security-review has reviewed this pull request through 523b115; a later push is reviewed from there. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8f13bcbf4f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
claude-review has reviewed this pull request through 523b115; a later push is reviewed from there. |
A path filter missed this repository's own caller pins, which the scan reads; dropping it removes the list to keep in sync. The component README's Rollout section now says which half gates pull requests. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01T7GukBojtE99rLCPY7Cw3R
|
Claude finished @kyle-sexton's task in 1m 38s —— View job Reviewing PR #741 (incremental)
Code review complete (incremental)Scope: per the custom instructions, this pass reviews only what changed between
Everything else in the PR was already reviewed at No high-signal findings. Both changes are targeted, correct fixes for the two Codex comments on the prior commit:
Checked for knock-on inconsistencies in these two files (stale filter references, mismatched job/workflow names between the comment and the Not independently verified: whether |
|
Claude finished @kyle-sexton's task in 35s —— View job Security Review (
|
No related issue: follow-on to #740, part of moving the STANDARDS_SYNC_APP_* secrets into the main-only standards-sync environment; no standards issue tracks it.
Summary
The
verify-pr-convention-lockstepjob ran on every pull request and minted astandards-sync App token to read five private gate callers for the caller-pin
scan. Those secrets are moving to the
standards-syncenvironment, whosebranch policy admits only
main, so a pull-request job can no longer mint thetoken. This splits the lockstep check (ADR-0008) in two: the copy check, which
reads only public repositories, stays on pull requests; the pin scan moves to a
main-only audit workflow.Based on #740 (
fix/stop-reading-repo-sync-secrets), which is still open; merge#740 first, and this diff then shrinks to its own two commits.
Fix
pr-require-checks.yml:verify-pr-convention-lockstepbecomescheck-pr-convention-copies. It keeps the gawk step, the hermetic tests andthe copy check, reads the public repositories with
github.token, and nolonger references
STANDARDS_SYNC_APP_*.ci-statusneeds:andresultsuse the new id. The note about mirroring the App secrets into Dependabot
secrets is dropped: the PR job no longer reads them, and Dependabot never
triggers the push or schedule events the new workflow runs on.
maintenance-audit-pr-convention-pins.yml: runs on every push tomain,weekly at
29 7 * * 3, and on dispatch. Theauditjob declaresenvironment: { name: standards-sync, deployment: false }(the fix(workflows): stop reading repo-level sync App secrets #740 shape),mints the read-only contents App token behind the
HAS_APP_CREDENTIALguard,runs the pin scan, and fails on drift. It opens no issue, per the CI posture
(AGENTS.md, README); the scheduled-run failure notification is the signal.
lockstep-drift.mjstakes one mode,copiesorpins. npm scriptslint:pr-convention-copiesandaudit:pr-convention-pinsreplacelint:pr-convention-lockstep. The pin mode fails up front when neitherLOCKSTEP_GITHUB_TOKENnorGITHUB_TOKENis set, so it can never pass on thepublic callers alone. New hermetic tests cover mode parsing, the token
requirement, and the CLI exit codes for a missing mode and a tokenless pin
scan.
vocabulary.json: maintenance functionaudit-pr-convention-pins.README CI posture section describe the split.
Verification
npm run test:pr-convention-lockstep: 85 tests, 85 pass (3 new).npm run test:pr-convention-policy: pass.npm run lint:pr-convention-copieswith no token set: "every copy matchespolicy.json", exit 0.
npm run audit:pr-convention-pinswith no token set: fails with"fetch-error: the pin scan reads private gate callers and needs
LOCKSTEP_GITHUB_TOKEN or GITHUB_TOKEN; neither is set", exit 1. The live pin
scan with a token was not run locally; the first
mainrun of the newworkflow exercises it.
npm run test:github-actions-conventions: 14 pass;npm run lint:github-actions-conventions: 0 findings.actionlintandzizmor --offlineon both workflows: no findings.npm run lint:concurrency-policyandnpm run lint:runner-policy: pass.code-review-rules.sh file: AGENTS.md carries the section.pre-commit hooks: pass.
Related
standards-syncenvironment;this branch is based on it).
Automation Lanes session: this removes the last pull-request reader of those
secrets.
.github/governance-verify/expected-contract-only-gates.jsonmaps the standards lane
pr-convention-locksteptoverify-pr-convention-lockstepunder
jobRenames; it needscheck-pr-convention-copiesin step with thismerge, or the daily governance verification reports the job missing.
🤖 Generated with Claude Code
https://claude.ai/code/session_01T7GukBojtE99rLCPY7Cw3R