Skip to content

gate merges on one check and isolate the release build - #46

Merged
xobotyi merged 1 commit into
mainfrom
repo-hardening
Jul 13, 2026
Merged

gate merges on one check and isolate the release build#46
xobotyi merged 1 commit into
mainfrom
repo-hardening

Conversation

@xobotyi

@xobotyi xobotyi commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Repo-hardening groundwork:

  • ci-ok aggregate gate: fails on any failed/cancelled job in the run, passes when everything triggered passed or was skipped. Becomes the single required status check in the upcoming main ruleset — conditional future jobs stay covered without enumerating contexts.
  • Release isolation: the release job is guarded by github.repository == 'GaijinEntertainment/go-gerrit-mcp' (no fork/mirror execution) and runs with setup-go cache disabled — the Actions cache is writable from any PR branch, so restoring it in the publishing build is a poisoning vector.

Rulesets (main protection + v* tag immutability) follow via API once this lands.

ci-ok aggregates every job of a CI run: it fails on any failure or
cancellation and passes when everything triggered passed or was
skipped. Branch protection requires only this one context, so
conditional jobs never need enumerating in rulesets.

The release job refuses to run outside this repository and builds
without the Actions cache: cache entries are writable from any PR
branch, so restoring one would let poisoned content reach the
publishing build.
@xobotyi
xobotyi merged commit 71ee08d into main Jul 13, 2026
6 checks passed
@xobotyi
xobotyi deleted the repo-hardening branch July 13, 2026 12:41
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