supply-chain-and-sbom
Skill0 starsChanged 5 months agoMITView on GitHub
Make the PCI DSS 6.3.2 / 11.3.1.1 software-bill-of-materials and artifact-provenance requirements actionable: generate SBOMs (syft) for execution-environment images and from requirements.lock.yml, sign/attest the promoted artifact (cosign / SLSA), and SHA-pin CI/CD components and container images. Triggers on: SBOM, supply chain, provenance, attestation, cosign, syft, SLSA, dependency pinning, 6.3.2, CycloneDX.
In this repository24 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ansible-patternsSkill
- ansible-testingSkill
- change-documentationSkill
- ci-pipeline-debuggingSkill
- drift-detectionSkill
- gitlab-cicd-pipelineSkill
- hsa-infrastructureSkill
- iac-sast-scanningSkill
- iac-tooling-selectionSkill
- incident-responseSkill
- instinct-promotionSkill
- instinct-rollbackSkill
- knowledge-curationSkill
- multi-env-promotionSkill
- octopus-releaseSkill
- pci-cp-complianceSkill
- pci-dss-complianceSkill
- pci-pin-awarenessSkill
- perso-change-controlSkill
- perso-complianceSkill
- pre-commit-and-secret-scanningSkill
- rollback-and-runbooksSkill
- secrets-vaultSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Use when wiring or reviewing the artifact's provenance controls: producing a software bill of materials, signing/attesting the build, and …
- Distinctive: line 59
Read-only generation/verification in the corporate-zone CI.
- Distinctive: line 102
All dependencies must be pinned to exact versions with hash verification:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Supply Chain & SBOM Skill
When to Use
Use when wiring or reviewing the artifact's provenance controls: producing a software bill of materials, signing/attesting the build, and pinning dependencies so the thing deployed is verifiably the thing built. PCI DSS v4.0.1 makes this concrete — 6.3.2 (inventory of bespoke and third-party software / SBOM) and 11.3.1.1.
How It Works
- Generate an SBOM (CycloneDX/SPDX) per release:
- Execution-environment images →
syft <image> -o cyclonedx-json > sbom.json. - Ansible content → an inventory from
requirements.lock.yml(pinned collections + roles) plus the EE SBOM. Attach the SBOM to the release/change record.
- Execution-environment images →
- Sign & attest the artifact — the build-once artifact carries a signature (cosign) and/or SLSA provenance. Verify the signature before each promotion, so "same artifact promoted" is cryptographically verifiable, not filename-deep.
- Pin everything — CI/CD Components by commit SHA, container images by digest,
collections/roles by exact version in
requirements.lock.yml. Floating tags break reproducibility and provenance. - Govern dependency updates — pinned bumps go through MR review (CODEOWNERS), with the SBOM diff visible. New transitive dependencies are a reviewable event.
Examples
# SBOM for the execution-environment image
syft registry.example/ee/ansible@sha256:<digest> -o cyclonedx-json > sbom-ee.json
# Sign the promoted artifact and verify before deploy
cosign sign-blob --yes ansible-bundle-${CI_COMMIT_SHA}.tar.gz > artifact.sig
cosign verify-blob --signature artifact.sig ansible-bundle-${CI_COMMIT_SHA}.tar.gz# Attach the SBOM as a GitLab dependency-scanning report
sbom:
stage: build
script: [syft dir:. -o cyclonedx-json=gl-sbom.cdx.json]
artifacts:
reports:
cyclonedx: gl-sbom.cdx.jsonTrust boundary
- Read-only generation/verification in the corporate-zone CI; never reaches prod or the HSA.
- SBOMs and signatures contain no secrets; never embed credentials or PAN.
- A failed signature/provenance verification blocks the promotion (binding gate).
Deep Reference — SLSA + SBOM + PCI 6.3.2
SLSA Supply Chain Levels
- SLSA Level 1: Build process is scripted (GitLab CI); SBOM generated
- SLSA Level 2: Hosted build service with version-controlled build scripts; artifact signed
- SLSA Level 3: Hardened build with provenance — no human operator access during build
For PCI DSS 6.3.2 compliance, SLSA Level 2 is the practical minimum.
SBOM Generation (syft)
# .gitlab-ci.yml — SBOM generation stage
generate-sbom:
stage: sbom
tags: [linux, docker]
image: anchore/syft:latest
script:
- syft dir:. -o spdx-json > sbom.spdx.json
- syft dir:. -o cyclonedx-json > sbom.cyclonedx.json
artifacts:
paths: [sbom.spdx.json, sbom.cyclonedx.json]
expire_in: 90 daysArtifact Signing (cosign + Sigstore)
sign-artifact:
stage: sign
script:
- cosign sign-blob --key $COSIGN_KEY sbom.spdx.json > sbom.spdx.json.sig
environment:
name: signingDependency Pinning
All dependencies must be pinned to exact versions with hash verification:
# requirements.txt — CORRECT
ansible==9.5.1 --hash=sha256:abc123...
# Pipfile.lock / package-lock.json — use lockfiles, commit themPCI 6.3.2 Inventory Requirements
The SBOM must cover: all bespoke software components, all third-party and open-source software, all frameworks and libraries, and their versions. Review the SBOM on every merge to catch unexpected new dependencies.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

