Merge gate passes a change it should block
The required check that stands for the conformance checks lets a change merge that a check should have stopped, by one of the routes below, and the record shows a pass. The gate check passes only when every blocking check has passed for the head commit (CHK-28), and the checks' code, their workflows and the list of what blocks change only with InfoSec approval (PRC-05). Whether the checks test enough is a matter for each artefact's own class (agent.K4). A CI workflow is a resource, so the risk is held here; if the class is split, it moves to the pipeline class.
Before and after controls.
With controls is rated as if every control below works as designed.
How it can happen.
A check is skipped, times out or stops reporting
A path filter, a pull request from a fork, a generated-file folder or a renamed job means a check does not run, or the CI service is down or a job times out, and the merge is allowed as if it had passed. The one required check passes only when every check blocking at that gate has passed for the head commit, so a check that did not run counts as one that failed (CHK-28).
A pull request weakens the check that judges it
A pull request changes a check's code, or the workflow that runs it, alongside the artefact it touches; the checks run from the pull request's own branch and pass it, and the record shows green. A change to check code or a workflow needs the approval of an
infosecmember who is not its author (PRC-05; CFG-09; CHK-35), who sees the check change, and no workflow runs untrusted code with the base repository's rights (CHK-35). The green result on that pull request still misleads anyone who reads only the record.A check that blocks too much is quietly made optional
A check fails on sound changes or at random, and to keep work moving someone demotes it from blocking to reporting or removes it from the required checks, with no recorded decision. Which checks block at each gate is set in the checks catalogue's frontmatter, a governing path whose every change InfoSec approves (PRC-05), and the required check is part of the branch protection managed as code (CFG-08). While one person holds every role, that person can do both, which is
person.K3S2.
Controls that reduce it.
- CHK-28Nothing passes a CI gate unless every blocking conformance check has passed Check
- PRC-05Every change to a governing document or library is approved by InfoSec Procedure
- CFG-09Every change requires review by the owner of the code it touches Configuration
- CHK-35Every CI workflow uses minimal permissions and actions pinned to an exact version Check
- CFG-08The release branch accepts changes only through a reviewed pull request Configuration
Other risks to cloud resource.
See the whole picture.
Every AI risk on one matrix, before and after controls.