open-swe/.github/workflows
Adam Moussa 9acf071ae4
Some checks are pending
Build & publish app artifacts / Publish + deploy (dev) (push) Waiting to run
Build & publish app artifacts / Publish + deploy (prod) (push) Waiting to run
CI / Lint (push) Waiting to run
CI / Format check (push) Waiting to run
CI / Unit tests (push) Waiting to run
CI / Playwright E2E (push) Waiting to run
fix: make dev->main promotion push succeed via bypass-actor App token (#49)
The nightly promote fast-forwards main to a fully-green dev HEAD, but the
push (as github-actions[bot]) is rejected by the main ruleset: it requires
PRs + a status check and the default token is not a bypass actor, so a
direct ref push can never land regardless of fast-forwardability. The
prior comment claiming protection 'only rejects non-FF' was wrong.

Mint a GitHub App installation token (actions/create-github-app-token,
SHA-pinned) and push with it; the App must be added to the main ruleset's
bypass actors out-of-band. The promoted commit already passed every check
on dev (gated by check-dev-green.sh), so re-gating it via a PR on main is
redundant.

Also fix a gate self-poison: a stale failed 'promote' check-run from a
prior run on the same dev HEAD blocked every subsequent gate run (it was
excluded only by the current run_id). Exclude prior promote check-runs
too, scoped to name=='promote' AND a /actions/runs/ details_url so an
external app cannot hide a real failing check by naming it 'promote'; the
positive REQUIRED_CHECKS allow-list stays authoritative.

Gates: GPT-4.1 cross-review APPROVE (no security regression). Unit-tested:
stale promote ignored -> PASS; real failure / external promote / missing
required check -> BLOCK. shellcheck clean (also fixed a pre-existing
SC2295 on the run_id match).
2026-06-28 21:42:50 -04:00
..
build-artifacts.yml ci: align workflows with Sea Haven CI/CD handbook (#29) 2026-06-27 21:47:25 -04:00
cd-infra.yml ci: align workflows with Sea Haven CI/CD handbook (#29) 2026-06-27 21:47:25 -04:00
ci-infra.yml ci: align workflows with Sea Haven CI/CD handbook (#29) 2026-06-27 21:47:25 -04:00
ci.yml chore(deps): bump astral-sh/setup-uv (#32) 2026-06-27 22:35:48 -04:00
dependency-review.yml ci: align workflows with Sea Haven CI/CD handbook (#29) 2026-06-27 21:47:25 -04:00
labeler.yml ci: align workflows with Sea Haven CI/CD handbook (#29) 2026-06-27 21:47:25 -04:00
pr_lint.yml chore(deps): bump python-dotenv from 1.2.1 to 1.2.2 (#1212) 2026-05-01 22:27:21 +00:00
promote-dev-to-prod.yml fix: make dev->main promotion push succeed via bypass-actor App token (#49) 2026-06-28 21:42:50 -04:00
reviewer-eval.yml chore(deps): bump astral-sh/setup-uv (#32) 2026-06-27 22:35:48 -04:00
rollback.yml ci: align workflows with Sea Haven CI/CD handbook (#29) 2026-06-27 21:47:25 -04:00