Skip to main content

Secure SDLC Evidence Collector

Collects the evidence a release already produces and tells you whether it proves a minimum Secure SDLC process: ready, conditional or not_ready.

CI Security CI PyPI Python 3.12 & 3.13 License Apache 2.0 Cosign signing configured OpenSSF Best Practices

At a Glance

sdlc-evidence reads the output of the tools you already run (scanners, SBOM generators, test runners, code review, attestations, release approvals) and evaluates it against a control catalog mapped to NIST SSDF and OWASP SAMM. It writes one auditable bundle per release and an exit code your pipeline can gate on.

Current release Default catalog Outputs Python
v4.3.1 13 controls bundle.json, report.md, summary.html 3.12+

Use it when an auditor, a release manager or an AppSec lead asks "prove this release is ready" and the answer today is a checklist of screenshots. It is not a scanner and it does not certify compliance.

Three Verdicts, One Exit Code

Verdict When Exit code (default --fail-on not_ready)
ready Every control is met, waived or not applicable 0
conditional No critical control lacks required evidence, but at least one control is partial or missing, or supplied evidence was set aside 0, or 1 with --fail-on conditional
not_ready A critical control lacks required evidence 2

The verdict comes from the criticality of the gaps, never from the score. In the default catalog the critical controls are SBOM, code review, release approval, rollback plan and artifact signature. Scanners and tests are high, so a release without them is conditional and passes the default gate. Pass --fail-on conditional when that must stop the pipeline.

Quickstart

python -m pip install secure-sdlc-evidence-collector
git clone https://github.com/lucashgrifoni/Secure-SDLC-Evidence-Collector.git
cd Secure-SDLC-Evidence-Collector/examples/sample_release
sdlc-evidence run --application payments-api --repository acme/payments-api --release-id 2026.04.10 --commit-sha abcdef1234567890 --artifacts-dir artifacts --attestations-dir attestations --output-dir ../../output/sample_release

The same commands work in bash, zsh and PowerShell. The sample release ends ready with 13 of 13 controls met. The run writes, in output/sample_release/ at the root of the clone:

  • summary.html for people who decide on the release.
  • report.md for review, with what to produce for each gap.
  • bundle.json for automation: deterministic, with a structural SHA-256 that sdlc-evidence verify recomputes.

Drop --attestations-dir to see not_ready and the missing critical evidence. The getting started guide takes the CLI, the GitHub Action, the GitLab component and the Docker image from install to first verdict.

What It Does

  • Reads SARIF from any scanner, native Trivy JSON, GitLab Security Reports, CycloneDX and SPDX SBOMs, OSV, JUnit, OWASP ZAP, and in-toto attestations (SLSA provenance, VSA, release attestations, PyPI and npm registry attestations).
  • Reads approvals, rollback plans, threat models and other human evidence from YAML or JSON attestations.
  • Reads GitHub pull request approvals and workflow runs on request (--pull-request, --workflow-run).
  • Applies time-bound waivers with scope, owner and expiry, and keeps them visible in every output.
  • Ships opt-in catalogs and profiles: SSDF 1.2, OSPS Baseline, EU CRA, FedRAMP 20x and AI evidence.
  • Exports a bundle as OpenVEX, an in-toto Statement, SARIF for code scanning, OSCAL or a GUAC document.

What It Does Not Do

  • It does not scan code, containers or infrastructure. It reads the output of the tools that do.
  • It does not decide compliance. ready means every control in the catalog has its evidence, not that the release is legally compliant.
  • It does not judge severity or exploitability beyond what the scanner reported. That stays a human decision on top of the bundle.
  • Known parser and classification limits are listed in docs/limitations.md.

Use It in CI

GitHub Action:

- uses: lucashgrifoni/Secure-SDLC-Evidence-Collector@v4.3.1 # x-release-please-version
  with:
    application: payments-api
    release-id: ${{ github.ref_name }}
    artifacts-dir: artifacts
    attestations-dir: attestations
    fail-on: not_ready

Action reference: docs/github_action.md. A reusable workflow and a GitLab CI/CD Catalog component are also available. The Action and the reusable workflow gate on not_ready by default; the GitLab component gates on conditional.

pre-commit, to validate waiver files and smoke-test the pinned release:

repos:
  - repo: https://github.com/lucashgrifoni/Secure-SDLC-Evidence-Collector
    rev: v4.3.1  # x-release-please-version
    hooks:
      - id: sdlc-evidence-validate-exceptions
      - id: sdlc-evidence-doctor

A third hook, sdlc-evidence-schema, fails the commit when a vendored copy of the bundle schema drifts; see .pre-commit-hooks.yaml.

Exit Codes

Code Meaning
0 ready, or a command that does not gate
1 conditional, subject to --fail-on; for doctor, a failed required check
2 not_ready; for verify --expected, a digest that does not match
3 The command could not run: bad input, unreadable file, failed validation

Every command, option and exit code is in the CLI reference. Under --json-logs every line is a JSON event; the events are listed in docs/json-logs.md.

Upgrading

Upgrading to 4.3.0 keeps the CLI defaults, the exit codes and the default catalog's rules. Verdicts can still get stricter on unchanged scanner files, GitLab Security Reports become evidence, and bundles made by the Action and the reusable workflow get a new digest on every run. What to do about each change, release by release, is in docs/upgrading.md.

Supply Chain Verification

Releases go to PyPI through Trusted Publishing. Wheel, sdist, release bundle and SBOM are signed with cosign keyless and logged in Sigstore Rekor, with SLSA Build Level 3 provenance. The multi-arch container image on ghcr.io is signed and SBOM-attested. The verification commands are under Verifying signatures.

Documentation Map

Topic Link
Documentation site https://lucashgrifoni.github.io/Secure-SDLC-Evidence-Collector/docs/
Getting started docs/getting-started.md
CLI reference docs/cli-reference.md
Troubleshooting docs/troubleshooting.md
Bundle schema docs/bundle_schema.md
Limitations docs/limitations.md
Comparison with alternatives docs/comparison.md
Release readiness checklist docs/release-readiness.md
Architecture decisions docs/adr/README.md
Roadmap docs/MATURITY_ROADMAP.md
Repository wiki openwiki/quickstart.md
Changelog CHANGELOG.md

Repository Layout

Path Purpose
src/evidence_collector/ Python package: domain model, collectors, parsers, normalizers, control engine, scoring, exporters, CLI
src/evidence_collector/controls/data/ Bundled control catalogs
examples/sample_release/ Realistic evidence set used in the docs and tests
examples/gitlab-component/ GitLab CI/CD Catalog component
action.yml GitHub Action
tests/ Unit, integration and property tests
docs/ Documentation site, ADRs and the published bundle schema
gitpage/ Landing page served at the root of the GitHub Pages site
.github/ CI, security, release and Pages workflows

Development

make install-dev
make lint          # ruff
make typecheck     # mypy --strict on src/ and tests/
make test          # pytest with the coverage gate
make run-example   # build the sample bundle

Ideas waiting for a concrete need are collected in Discussion #188.

Contributing and Security

License

Apache-2.0 © Lucas Henrique Grifoni. Since 4.0.0 the package also includes a BSD-2-Clause FIRST CVSS reference port; see third-party notices.

Metadata

Release files for secure-sdlc-evidence-collector 4.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for secure-sdlc-evidence-collector 4.3.1
File Size Uploaded Provenance Actions
secure_sdlc_evidence_collector-4.3.1.tar.gz 281.5 kB With provenance Details for secure_sdlc_evidence_collector-4.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for secure-sdlc-evidence-collector 4.3.1
File Interpreter ABI Platform Actions
secure_sdlc_evidence_collector-4.3.1-py3-none-any.whl Python 3 none any Details for secure_sdlc_evidence_collector-4.3.1-py3-none-any.whl

Total release size: 629.3 kB

Release files / secure_sdlc_evidence_collector-4.3.1.tar.gz

Download URL secure_sdlc_evidence_collector-4.3.1.tar.gz
Size 281.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d9ac84f1f9e1c7cc6b98578767f82eda887300458f20d1883b396bd5101ef8a7
BLAKE2b-256 checksum
How to use checksums
f232409a770b7ef85bbf5d0d183fd7cd6ab63931407ff7be2c19419c6595b40c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / secure_sdlc_evidence_collector-4.3.1-py3-none-any.whl

Download URL secure_sdlc_evidence_collector-4.3.1-py3-none-any.whl
Size 347.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3fd6d377d8c36f3619d779e7d91da045cd19ea7ebfe9bb42bc4804c821bb57d
BLAKE2b-256 checksum
How to use checksums
5a3acd2f616cd2495548ccc48e8674c3ad1302be26776f9bd762e84995d805c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for secure-sdlc-evidence-collector 4.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for secure_sdlc_evidence_collector-4.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page