CI/CD pipeline runs automated tests and blocks deployment on failures
Why it matters
Deploying untested code to production is a direct path to user-facing regressions, data corruption, and outages. Without CI/CD gates (NIST SP 800-218 PW.8, SSDF), a broken commit reaches users the moment it's merged. ISO 25010 reliability.maturity requires demonstrable automated quality gates. Teams without mandatory test runs discover failures in production — where the cost is measured in downtime, rollbacks, and lost trust — rather than in a pull request, where the cost is a 5-minute fix.
Severity rationale
Critical because untested code in production is a direct cause of undetected regressions, outages, and data integrity failures that affect all users simultaneously.
Remediation
Add a test workflow to .github/workflows/test.yml and enable branch protection to require it before merge.
# .github/workflows/test.yml
name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm install
- run: npm test
Then in GitHub → Settings → Branches → Add rule: require status check test to pass before merging. Without the branch protection rule, the workflow runs but doesn't block bad merges.
DetectionPro
The detection method for this pattern is part of AuditBuffet Pro.
The full method (what to look for, pass and fail conditions, and how results get reported) ships inside the Deployment Readiness Audit. The pattern definition, severity rationale, and remediation remain openly licensed under CC-BY-4.0.
External references
- iso-25010:2011 · reliability.maturity — Maturity (degree to which system meets reliability needs under normal operation)
- nist:rev5 · SA-11 — Developer Testing and Evaluation
- ssdf:800-218 · PW.8 — Test executable code to identify and address vulnerabilities
- soc2:2017 · CC8.1 — Change management
- soc2:2017 · CC5 — Control Activities
Taxons
History
- 2026-04-18·v1.0.0·Initial import from deployment-readiness·automated
- 2026-07-06·v1.0.1·Add SOC 2 TSC mapping (CC8.1, CC5) from the verified compliance crosswalk register (docs/compliance/).·by soc2-mapping-enrichment-ship-2