Skip to content

ci: roll out org-wide bot-token validation flow - #368

Merged
github-actions[bot] merged 4 commits into
mainfrom
feat/org-flow
Aug 21, 2026
Merged

github-actions[bot] merged 4 commits into
mainfrom
feat/org-flow

Conversation

@atrawog

@atrawog atrawog commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

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):

  • Job renamed to validate (branch protection check becomes
    validate / validate — already updated).
  • workflow_dispatch trigger added for manual re-validation.
  • .github/workflows/auto-merge.yml (the obsolete
    check_run/workflow_run engine that never fired for
    approval-required runs) is deleted.

Maintainer sign-off (T4 — gate coverage + permissions)

  • Fork-PR exclusion (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.
  • Permission escalation (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 fully
automatically): API rename with the app token, synchronize run without
approval, AI review, auto-merge.

Project-rulebook compliance

Attribution

Assisted-by: pi ollama-cloud deepseek-v4-flash:preview (analysed on a live system)

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)
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 905770c2c044 (branch: ci/org-wide-bot-token-validation)

Change class: Code (workflow) — CI gate; non-runtime standards.

Blocks

  1. A1/T3 — description↔code mismatch. The body's summary claims "approve-validator-runs.yml deleted — obsolete", but the diff deletes .github/workflows/auto-merge.yml (the org-wide auto-merge dispatcher), not approve-validator-runs.yml. The body never accounts for the actual deleted file (auto-merge.yml), and its R5 compliance claim ("obsolete approver deleted") refers to a file that is not in this diff. The CHANGELOG correctly names auto-merge.yml, so the body is internally inconsistent with both the diff and the CHANGELOG. Fix the body's summary (and the R5 line) to account for the actual auto-merge.yml deletion and drop the approve-validator-runs.yml claim.

  2. T4 — gate coverage + permission change to the validator's own guardrails. The new pr-validator.yml adds a fork-PR exclusion — if: github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.fork == false — so the AI validator no longer runs on fork PRs (the old workflow ran on every pull_request event). It also escalates workflow permissions from contents: read, issues: write to contents: write, actions: write. This PR modifies the validator gate itself; per T4 this needs an explicit maintainer sign-off confirming the fork-coverage reduction and permission escalation are intended org-wide design, not a silent gate weakening. The body does not supply that sign-off.

Notes (non-blocking)

  • CHANGELOG 2026.233.2155.md present, CalVer filename and H1 match. Not blocking.
  • CI shows validate / validate and go in progress; no green/failed conclusion yet to cross-check.

Verdict: BLOCK


openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 8b03579ee2e4 (branch: ci/org-wide-bot-token-validation)

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 auto-merge.yml deletion), and the T4 maintainer sign-off is now supplied. CHANGELOG 2026.233.2205.md present with matching CalVer filename and H1. Workflow change → non-runtime standards; live proof cited from .github (#52–#54) and sdk (#155). Attribution tier (analysed on a live system) is not inflated.

Verdict: PASS


openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 21, 2026 22:07
@github-actions
github-actions Bot merged commit 217c5ff into main Aug 21, 2026
2 checks passed
@aitrawog
aitrawog deleted the feat/org-flow branch September 25, 2026 19:05
charly-auto-merge Bot added a commit that referenced this pull request Sep 25, 2026
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