Release readiness checklist¶
Go/no-go criteria the maintainer works through before merging the release-please pull request of the Secure SDLC Evidence Collector. Gates marked maintainer-local need material that is not in this repository (the private lab corpus, a release approval); a reader cannot reproduce them from a clone.
Public repository readiness is handled through the maintainer issue queue and release approvals, not through committed private runbooks.
Current published line: 4.x (the live version is shown by the PyPI
badge in the README). Last recorded pass: 4.2.0, 2026-10-16. On the
release commit 3108f61, GitHub CI/CD (run 38938135052), Security CI/CD
(run 38938135161), CodeQL (run 38938134989) and Publish to PyPI (run
38938185369, on the v4.2.0 tag) all succeeded. Those CI runs cover the
test suite and coverage gate, the sample release returning ready with a
stable structural digest across runs and operating systems, and the
release signing. The sample release without --attestations-dir returns
not_ready with the four expected missing critical controls
(ORG-CODE-REVIEW, ORG-RELEASE-APPROVAL, ORG-REL-ROLLBACK,
SSDF-PS.2) and exit code 2 (re-run 2026-11-09, see
traceability §4). Lint and type gates (ruff, mypy --strict) run in
github-ci-cd.yml and publish-pypi.yml; secret, SAST, SCA, IaC and
workflow gates (Semgrep, Snyk Code, Snyk Open Source, Trivy dependency /
misconfiguration / secret scans, Gitleaks, Dependency Review, actionlint)
run in security-ci-cd.yml, with native CodeQL in codeql.yml.
Per-release evidence packs and session handoffs are generated locally
and are not committed to the public repository.
Quality gates¶
-
ruff check src tests scripts→ clean. -
ruff format --check src tests scripts→ clean. -
mypy --strict src tests→ zero errors. -
pytest→ all tests pass and the coverage gate inpyproject.tomlis met. -
sdlc-evidenceconsole script installs from a clean venv (python -m pip install -e ".[dev]") on Linux and Windows. - Docker image builds from
Dockerfileand runs the sample bundle as a non-root user.
Dogfood gates¶
- Sample release (
examples/sample_release/) producesrelease_status = ready, coverage 100, 13/13 controls met. - Maintainer-local. Self-release (
examples/self_release/) producesrelease_status = ready(orconditionalwith documented recommended-only gaps) once the uncommitted release approval attestation and the generated scanner outputs are in place. A fresh checkout reportsnot_ready; seeexamples/self_release/README.md. - Sample release without
--attestations-dirproducesrelease_status = not_readywith the expected missing critical controls listed indocs/traceability.md §4. -
sdlc-evidence compare before.json after.jsonreports zero deltas for two back-to-back runs on the same inputs.
External-lab evidence (maintainer-local)¶
The lab corpus is not public, so these gates run only on a maintainer
machine; see examples/labs/README.md.
- Every lab in
examples/labs/regenerates its ignoredartifacts/,logs/, andoutput/bundle.json.scripts/scan_all_labs.shexits0even when a lab is skipped or the collector fails, so check its output for[skip]andcollector exited non-zerolines. - Each lab's obtained verdict matches the expected verdict in
docs/traceability.md §4. - Any drift (expected ≠ obtained) is triaged — either code change,
catalog change, or documented limitation in
docs/limitations.md.
Documentation gates¶
-
README.mdclaims match implementation (no dead badges, correct workflow filenames, correct control count, correct example commands). -
CHANGELOG.mdup to date with the tag being released. - The
uses:andcollector-versionexamples in.github/workflows/reusable-evidence-collection.ymlname the version being released. release-please cannot update them: its App token has noworkflowspermission, so bump that file by hand in a small PR merged just before the release PR. -
docs/bundle_schema.mdmatches the current Pydantic schema (checked by hand againstsdlc-evidence schema; the automated diff intests/unit/test_schema_contract.pycovers only the committeddocs/evidence-bundle.schema.json). -
docs/traceability.mdreflects the current scenarios and verdicts. -
docs/limitations.mdlists every known FP/FN and scope exclusion.
Security gates¶
-
security-ci-cd.yml(Semgrep, Snyk Code, Snyk Open Source, Trivy, Gitleaks, Dependency Review, actionlint) passes on the release commit. - No hardcoded secrets (
gitleaksclean,trivy secretclean). - No local home-directory paths in any tracked file outside fixtures explicitly marked as scrubbed.
- All GitHub workflows use
persist-credentials: false, least privilegepermissions:blocks, and SHA-pinned third-party actions (or explicit tag pins where SHA is not available). - Dependabot is green or every open alert has a waiver.
Release integrity gates¶
-
publish-pypi.ymlsigns wheel + sdist +bundle.jsonkeyless with cosign. -
sigstoretransparency-log entries are reachable for the latest release (verified withcosign verify-blob --certificate-identity ... --certificate-oidc-issuer https://token.actions.githubusercontent.com). -
checksums.txt(SHA-256 of wheel, sdist,bundle.jsonand SBOMs) published alongside release assets. - A rehearsal of
publish-pypi.ymlis green on the release-please PR branch, dispatched right before that PR is merged (commands below). A dispatch on a branch takes the tag from the version inpyproject.toml, runs the quality gates, the reproducible build, the SLSA provenance, the SBOM and the release bundle, signs into the runner, checks that every file the release would attach exists, and builds the image withpush: false. It creates no tag, release asset, PyPI version, GHCR tag or GitHub attestation. A pull request that changes the publish workflow needs its own green rehearsal on its branch before merge. - A dispatch on a tag is only used to finish a release whose run attached nothing: the workflow refuses it once that release has assets, because a re-run would re-sign and replace them.
Governance gates¶
-
SECURITY.mdreporting address is active. - Issue / PR templates render correctly on GitHub.
-
CODEOWNERSresolves to an active reviewer. -
CONTRIBUTING.mddescribes the local quality gates (ruff,mypy,pytest) and the test expectations for a change. The project does not require DCO sign-off. -
CODE_OF_CONDUCT.mdreference is current.
Go / no-go¶
The maintainer signs off the release only when all boxes above are
checked. A failure in any single box blocks the release until the root
cause is either fixed or documented as an accepted limitation in
docs/limitations.md with explicit rationale.
How to run this checklist¶
# Quality gates
make lint typecheck test
# Dogfood gates
make run-example
# two back-to-back runs on the same inputs, then compare them
for n in 1 2; do
python -m evidence_collector.cli.main run \
--application payments-api --repository acme/payments-api \
--release-id 2026.04.10 --commit-sha abcdef1234567890 \
--artifacts-dir examples/sample_release/artifacts \
--attestations-dir examples/sample_release/attestations \
--output-dir "output/ready-check-$n"
done
python -m evidence_collector.cli.main compare \
output/ready-check-1/bundle.json \
output/ready-check-2/bundle.json
# not_ready case: the same inputs without --attestations-dir (exits 2)
python -m evidence_collector.cli.main run \
--application payments-api --repository acme/payments-api \
--release-id 2026.04.10 --commit-sha abcdef1234567890 \
--artifacts-dir examples/sample_release/artifacts \
--output-dir output/not-ready-check
# External-lab evidence (maintainer-local, needs the lab corpus)
LAB_ROOT=/path/to/the/lab/corpus bash scripts/scan_all_labs.sh
# Publish rehearsal (on the release-please PR branch, before merging it)
branch="$(gh pr view <release-pr-number> --json headRefName --jq .headRefName)"
gh workflow run publish-pypi.yml --ref "$branch"
gh run watch "$(gh run list --workflow publish-pypi.yml --branch "$branch" \
--limit 1 --json databaseId --jq '.[0].databaseId')" --exit-status
# Security gates (locally, before tagging)
gitleaks detect --source . --redact
trivy fs --scanners vuln,secret,misconfig --severity HIGH,CRITICAL .
semgrep scan --config p/security-audit --config p/secrets --error
# Reproducibility (clean container)
docker build -t sdlc-evidence:check . && \
docker run --rm -v "$PWD/examples/sample_release:/data:ro" \
sdlc-evidence:check run \
--application payments-api --repository acme/payments-api \
--release-id 2026.04.10 --commit-sha abcdef1234567890 \
--artifacts-dir /data/artifacts --attestations-dir /data/attestations \
--output-dir /tmp/bundle