fix(ci/main): sync audit-force-merge REQUIRED_CHECKS with branch protection
Some checks failed
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Blocked by required conditions
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 23s
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 29s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 28s
E2E API Smoke Test / detect-changes (pull_request) Successful in 1m26s
CI / Detect changes (pull_request) Successful in 1m29s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 1m33s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 1m32s
gate-check-v3 / gate-check (pull_request) Successful in 43s
sop-checklist / all-items-acked (pull_request) acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: 7
qa-review / approved (pull_request) Failing after 26s
security-review / approved (pull_request) Failing after 27s
sop-checklist-gate / gate (pull_request) Successful in 29s
sop-tier-check / tier-check (pull_request) Successful in 22s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 12s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 8s
CI / Canvas (Next.js) (pull_request) Successful in 11s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m41s
CI / Platform (Go) (pull_request) Successful in 21s
CI / Python Lint & Test (pull_request) Successful in 9s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
CI / all-required (pull_request) Successful in 5s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 20s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 43s
Lint workflow YAML (Gitea-1.22.6-hostile shapes) / Lint workflow YAML for Gitea-1.22.6-hostile shapes (pull_request) Successful in 2m20s
lint-continue-on-error-tracking / lint-continue-on-error-tracking (pull_request) Successful in 3m7s
lint-required-context-exists-in-bp / lint-required-context-exists-in-bp (pull_request) Failing after 11m0s
Lint pre-flip continue-on-error / Verify continue-on-error flips have run-log proof (pull_request) Failing after 11m6s
Runtime PR-Built Compatibility / detect-changes (pull_request) Failing after 10m43s

mc#805 drift F3a/F3b: main branch protection requires
CI/all-required and sop-checklist/all-items-acked, not Secret scan
or sop-tier-check.

- F3a: removed Secret scan and sop-tier-check from REQUIRED_CHECKS
         (not enforced on main — would false-positive)
- F3b: added sop-checklist/all-items-acked to REQUIRED_CHECKS
         (enforced on main — force-merge without it was missed)
- Also updated stale comment block that listed old contexts

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Molecule AI · core-devops 2026-05-13 06:38:28 +00:00
parent 2c8582937c
commit 3e77097d42

View File

@ -60,16 +60,19 @@ jobs:
# (currently `main`; `staging` protection forthcoming per
# RFC internal#219 Phase 4).
#
# Initialized 2026-05-11 from the current molecule-core `main`
# branch protection:
# Current molecule-core `main` branch protection:
#
# GET /api/v1/repos/molecule-ai/molecule-core/
# branch_protections/main
# → status_check_contexts = [
# "Secret scan / Scan diff for credential-shaped strings (pull_request)",
# "sop-tier-check / tier-check (pull_request)"
# "CI / all-required (pull_request)",
# "sop-checklist / all-items-acked (pull_request)"
# ]
#
# mc#805 drift F3a/F3b: previous REQUIRED_CHECKS listed checks
# not enforced on main (Secret scan, sop-tier-check) while
# missing the enforced sop-checklist. Fixed here.
#
# Declared here rather than fetched from /branch_protections
# because that endpoint requires admin write — sop-tier-bot
# is read-only by design (least-privilege per
@ -78,12 +81,10 @@ jobs:
# auto-detected by `ci-required-drift.yml` (RFC §4 + §6),
# which opens a `[ci-drift]` issue within one hour.
#
# When the protection set changes (e.g. Phase 4 adds the
# `ci / all-required (pull_request)` sentinel), update BOTH
# branch protection AND this env in the SAME PR; drift-detect
# will otherwise file an issue for you.
# When the protection set changes, update BOTH branch
# protection AND this env in the SAME PR; drift-detect will
# otherwise file an issue for you.
REQUIRED_CHECKS: |
Secret scan / Scan diff for credential-shaped strings (pull_request)
sop-tier-check / tier-check (pull_request)
CI / all-required (pull_request)
sop-checklist / all-items-acked (pull_request)
run: bash .gitea/scripts/audit-force-merge.sh