release-supply-chain-conventions
Skill7 starsChanged 5 days agoMITView on GitHub
What a public GitHub release ships beside its artifacts: Sigstore provenance attestations, an SBOM, registry provenance, binary signing. TRIGGER when: a public GitHub repository's release publishes binaries, archives, a checksums file, an image or a package; adding `actions/attest`, an SBOM generator, `pypa/gh-action-pypi-publish`, `npm publish` or `cargo publish` to a workflow; documenting how to verify a download; user asks about provenance, attestations, SBOMs, trusted publishing, code signing, notarization, or Scorecard's Signed-Releases check. SKIP when: the repository is private or publishes nothing; the repo is on GitLab (`gitlab-ci-conventions`).
- Commits and pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- leroyguillaume/skillsword for word, first seen Nov 22, 2026
Other versions1 project uses a version of this.
Word for word · 1
- leroyguillaume/skills★ 7100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository54 other files it gives its agents.
- adr-conventionsSkill
- api-conventionsSkill
- architecture-conventionsSkill
- argocd-conventionsSkill
- ci-conventionsSkill
- config-conventionsSkill
- contributing-conventionsSkill
- councilSkill
- cryptography-conventionsSkill
- dependency-update-conventionsSkill
- diagram-conventionsSkill
- docker-conventionsSkill
- documentation-conventionsSkill
- frontend-conventionsSkill
- github-actions-conventionsSkill
- github-issue-conventionsSkill
- github-pr-conventionsSkill
- github-repo-settingsSkill
- gitlab-ci-conventionsSkill
- helm-conventionsSkill
- herdr-core-delegationSkill
- herdr-delegationSkill
- herdr-tui-delegationSkill
- kopf-conventionsSkill
- kubernetes-operator-conventionsSkill
- logging-conventionsSkill
- logo-conventionsSkill
- mise-conventionsSkill
- ollama-conventionsSkill
- openssf-conventionsSkill
- pr-conventionsSkill
- pre-commit-conventionsSkill
- project-metadata-conventionsSkill
- python-async-conventionsSkill
- python-conventionsSkill
- readme-conventionsSkill
- release-script-conventionsSkill
- renovate-ci-conventionsSkill
- rest-conventionsSkill
- rust-build-conventionsSkill
- rust-conventionsSkill
- rust-http-conventionsSkill
- security-policy-conventionsSkill
- signal-handling-conventionsSkill
- sql-conventionsSkill
- starlight-conventionsSkill
- systemd-conventionsSkill
- system-user-conventionsSkill
- task-conventionsSkill
- terraform-conventionsSkill
- topic-splittingSkill
- ui-copy-conventionsSkill
- web-layout-conventionsSkill
- yaml-conventionsSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
All of it applies, with no ask, to a public repository whose release publishes something: a binary, an archive, an image, a package.
- Very specific: line 86
.sigstore.json, because that is what it is: Never .intoto.jsonl, the extension Scorecard counts as provenance: the file is a Sigstore … - Very specific: line 209
Never set attestations: false on the PyPI action.
- Distinctive: line 213
Never ask a private repository, or one that releases nothing, for an attestation or an SBOM.
- Very specific: line 215
Never grant id-token: write beyond the job that attests or publishes, and never in a pull-request workflow.
- Distinctive: line 217
Never attest a file and then modify it.
- Very specific: line 218
Never give the attestation bundle an extension other than .sigstore.json.
- Very specific: line 220
Never verify with --owner in the documentation.
- Distinctive: line 221
Never add notarisation or Authenticode unasked.
- Distinctive: line 222
Never store a registry API token when the registry offers trusted publishing.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Release supply chain conventions
What a public repository's release pipeline (ci-conventions) publishes
beside each artifact, so that anyone who downloads it can check that this
repository's CI built it, from which commit, and what it contains. The
workflow mechanics around it are in github-actions-conventions.
Scope: public repositories that publish
All of it applies, with no ask, to a public repository whose release publishes something: a binary, an archive, an image, a package. Nothing here applies to:
- a private repository. Artifact attestations there need GitHub Enterprise Cloud, and nobody outside can verify them anyway. No attestation, no SBOM.
- a repository that releases nothing — docs, configuration, skills, a library consumed from source. There is no artifact to vouch for.
A provenance attestation on every published artifact
actions/attest, SHA-pinned, in its default mode: a SLSA build provenance
statement, signed with a short-lived Sigstore certificate bound to the
workflow's OIDC identity, logged in the public-good Sigstore transparency log,
and stored in the repository's attestations. No key to generate, rotate or
leak. actions/attest-build-provenance is a thin wrapper over it; new
workflows call actions/attest directly.
- Every artifact the release uploads is a subject: each binary, each archive, and the checksums file. A user who checks only the checksums file still gets a verified line for every artifact in it. The SBOM gets an attestation of its own (below).
- Attest after the last step that writes the files, in the job that uploads them. A file repacked or renamed after its attestation no longer matches it.
id-token: writeandattestations: writeon that job alone; the workflow stayscontents: read. The OIDC token is what Sigstore certifies, so any other job holding it could sign in the release's name.
- name: attest the release files
id: attest
uses: actions/attest@<40-char-sha> # vX.Y.Z
with:
subject-path: dist/*The attestation bundle ships with the release
The attestation API is invisible to anyone who only looks at the release:
Scorecard's Signed-Releases check reads the files attached to the last five
releases, and finds a signature only by its extension (.asc, .minisig,
.sig, .sign, .sigstore, .sigstore.json). So the release also attaches
the Sigstore bundle actions/attest writes to its bundle-path output:
- name: name the attestation bundle after the release
env:
BUNDLE: ${{ steps.attest.outputs.bundle-path }}
run: cp "$BUNDLE" "<project>-<version>.sigstore.json"gh release create uploads it beside the files and the SBOM.
- One attest step for the release files, one bundle, named after the
release:
<project>-<version>.sigstore.json, like the SBOM. A step given several subjects signs one statement listing them all, so the bundle verifies each of them; a name taken from one file would claim it covers that file alone, and a step per file adds signatures without adding a guarantee. .sigstore.json, because that is what it is. Never.intoto.jsonl, the extension Scorecard counts as provenance: the file is a Sigstore bundle, not an in-toto JSON Lines file, and a name chosen for the score lies to every other tool.
Images
The manifest job, the only one that knows the multi-arch index digest,
attests the image by that digest and pushes the attestation to the registry,
so it travels with the image:
- name: attest the image
uses: actions/attest@<40-char-sha> # vX.Y.Z
with:
subject-name: ghcr.io/${{ github.repository }}
subject-digest: ${{ steps.digest.outputs.digest }}
push-to-registry: truesubject-name is the fully-qualified image name without a tag: the
digest identifies the image. The digest step reads it back after the push,
with docker buildx imagetools inspect <image>:<tag> --format
'{{json .Manifest}}' | jq -r .digest. GHCR wants it lowercase, so a repository with a
capital in its owner or name lowercases it first. The job already holds
packages: write for the push; it adds id-token: write,
attestations: write and artifact-metadata: write, the last for the
storage record the action creates beside the attestation.
Verifying is documented
An attestation nobody is told how to check protects nobody. The README's
installation (readme-conventions) follows each download with its check:
gh attestation verify <file> --repo <owner>/<repo>gh attestation verify oci://ghcr.io/<owner>/<repo>:<tag> --repo <owner>/<repo>--repo, never --owner: --owner accepts an attestation from any
repository of that account, including one that never built this artifact.
The bundle attached to the release checks a file without the attestation API, documented after the form above, never instead of it:
gh attestation verify <file> --bundle <project>-<version>.sigstore.json --repo <owner>/<repo>With --bundle, --repo is compared with the name recorded at signing
time, so it cannot tell a renamed repository, or a new one reusing the
name, from the original; the API lookup can.
Signing a binary
The provenance attestation is the default way to sign a binary. Apple
notarisation (a paid Developer ID) and Windows Authenticode (a paid
code-signing certificate) only matter to a file downloaded through a
browser, which Gatekeeper and SmartScreen check; curl, a package manager
or gh release download never trigger either. Add them only when the user
asks, and then as their own job, holding their own secrets.
An SBOM with every release
Each release that publishes an artifact attaches one SBOM, in CycloneDX
JSON. It is the format built for security tooling: vulnerability scanners
read it directly, and the same format carries VEX statements about which
known CVEs actually affect the artifact. SPDX JSON, the other format
actions/attest accepts, only where the user asks for it, typically for a
licence-compliance consumer that requires it.
Generate it from what was built:
anchore/sbom-action, SHA-pinned, on the checkout for files built from it (it reads the lockfiles of every ecosystem), on the image for an image. Its default format is SPDX, so set it:- name: generate the SBOM uses: anchore/sbom-action@<40-char-sha> # vX.Y.Z with: format: cyclonedx-json output-file: <project>-<version>.cdx.json- Attach it to the release like any other file, named after the release:
<project>-<version>.cdx.json, written outsidedist/so it is never a subject of its own provenance. Attest it against the artifacts it describes, which binds the inventory to those exact bytes:
- name: attest the SBOM uses: actions/attest@<40-char-sha> # vX.Y.Z with: subject-path: dist/* sbom-path: <project>-<version>.cdx.jsonAn image's SBOM is attested with the image's
subject-nameandsubject-digestinstead, pushed to the registry the same way.
Registry provenance and trusted publishing
A package registry that offers trusted publishing gets it: the registry trusts the workflow's OIDC identity, so no long-lived token sits in the repository's secrets, and where the registry supports it, the same identity signs a provenance statement for the upload.
| Registry | How | What the registry shows |
| PyPI | pypa/gh-action-pypi-publish, no password input | PEP 740 attestations for each distribution file, on by default |
| npm | trusted publishing, npm publish --provenance | a provenance statement on the package page |
| crates.io | rust-lang/crates-io-auth-action, its token output as CARGO_REGISTRY_TOKEN | no attestation; a short-lived token the action revokes |
id-token: writeon the publishing job alone, which runs in a GitHub environment named after the registry (pypi,npm,crates-io).- The trusted publisher is declared on the registry's side — owner, repository, workflow file name, environment — in its web settings. That step is the user's; hand them the values, and never fall back to an API token stored as a secret.
- Never set
attestations: falseon the PyPI action.
Never
- Never ask a private repository, or one that releases nothing, for an attestation or an SBOM.
- Never grant
id-token: writebeyond the job that attests or publishes, and never in a pull-request workflow. - Never attest a file and then modify it.
- Never give the attestation bundle an extension other than
.sigstore.json. - Never verify with
--ownerin the documentation. - Never add notarisation or Authenticode unasked.
- Never store a registry API token when the registry offers trusted publishing.
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.

