Repository navigation
ci: roll out org-wide bot-token validation flow - #368
Conversation
Replace the inline validator with the thin org-wide dispatcher (job 'validate', workflow_dispatch trigger), delete the obsolete auto-merge.yml engine. The shared reusable in opencharly/.github finalizes the CHANGELOG via the Contents API with the charly-auto-merge app token. Assisted-by: pi ollama-cloud deepseek-v4-flash:preview (analysed on a live system)
Review — BLOCKHead SHA: Change class: Code (workflow) — CI gate; non-runtime standards. Blocks
Notes (non-blocking)
Verdict: BLOCK openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — T4 self-modifying change carries an explicit maintainer sign-off in the body and CHANGELOG covering the fork-PR exclusion and permission escalation, with a coherent org-wide-design justification. No secrets, no scope mismatch, no silent gate weakening. Checklist: All applicable rules PASS or NA. The prior reviewer's two blocks are stale/superseded against the CURRENT body: the description↔code mismatch is resolved (body now correctly accounts for the Verdict: PASS openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
ci: roll out org-wide bot-token validation flow
Replaces the per-repo inline validator with the thin org-wide
dispatcher (shared logic lives in
opencharly/.github):validate(branch protection check becomesvalidate / validate— already updated).workflow_dispatchtrigger added for manual re-validation..github/workflows/auto-merge.yml(the obsoletecheck_run/workflow_run engine that never fired for
approval-required runs) is deleted.
Maintainer sign-off (T4 — gate coverage + permissions)
if: ... head.repo.fork == false): intended.Fork PRs cannot complete the org-wide flow — the CHANGELOG rename
requires
contents: write, which GITHUB_TOKEN lacks on fork PRs —so the gate correctly skips them instead of failing spuriously.
This matches every other repo's org-wide dispatcher.
contents: read→contents: write,added
actions: write): required to call the shared reusable(which declares the same permissions); identical to all other
org-wide dispatchers.
Change class
Code (workflow) — CI gate; non-runtime standards.
How tested
The identical flow is proven end-to-end in
opencharly/.github(PRs #52–#54) and rolled out to
sdk(PR #155 — merged fullyautomatically): API rename with the app token, synchronize run without
approval, AI review, auto-merge.
Project-rulebook compliance
.github; per-repo dispatcher isthe thin consumer.
auto-merge.ymldeleted..github(refactor(check): core consumes the kit result model + plan helpers (P5 units 2+3 consumer) #54) andsdk(docs: fix CHANGELOG H1 headings to use CalVer version #155).Attribution
Assisted-by: pi ollama-cloud deepseek-v4-flash:preview (analysed on a live system)