SLSA Provenance & Supply-Chain Integrity
Technology: supply-chain · Category: tooling · Last reviewed: 2026-10-20
Source: https://tech-stack.codeamanilabs.org/guide/supply-chain
Insight:
SLSA levels are Build-track assurance levels, not a tool you install. codeAmani targets Build L3 for anything that ships (npm package, release tarball, container);
npm publish --provenance/ trusted publishing alone is only L2. Two L3 routes now exist: theslsa-github-generatorisolated builders (our documented default, but its maintainers marked it no longer actively maintained in Aug 2026) and GitHub's own route,actions/attestinside a shared reusable workflow. npm removes direct-publish tokens in Jan 2027, which breaks the generator's npm publish step. Deploys (this KB, Vercel apps) need no provenance: pin your Actions and document the build.
███████╗██╗ ███████╗ █████╗
██╔════╝██║ ██╔════╝██╔══██╗
███████╗██║ ███████╗███████║
╚════██║██║ ╚════██║██╔══██║
███████║███████╗███████║██║ ██║
╚══════╝╚══════╝╚══════╝╚═╝ ╚═╝
SLSA (Supply-chain Levels for Software Artifacts) is an OpenSSF framework for build integrity. It answers one question for whoever installs your artifact: "Here is the verifiable, unforgeable record of how and where this was built." This guide is policy for codeAmani: decide a provenance target at plan time, not at release.
Status, 2026-10-20: read before you copy a recipe.
slsa-github-generatorandslsa-verifierboth carry a "no longer actively maintained" notice (added 2026-08-06). Existing provenance stays valid and thev2.1.0reusable workflows still run, but they "should not be assumed to receive updates, including for GitHub Actions runtime deprecations". The maintainers point new integrations to GitHub artifact attestations.- The generator's npm
publishaction needs a long-lived npm token and pins npm 9.8.1. That npm can't do trusted publishing (OIDC, npm ≥ 11.5.1) or staged publishing (npm ≥ 11.15.0). npm removes direct publishing with granular tokens in January 2027, so Recipe A1 stops working then unless the generator ships a fix.- GitHub documents a second Build L3 route: build +
actions/attestinside a shared reusable workflow. This guide now presents it as an option (Recipes A2, B2, C2). The policy target (Build L3) is unchanged. Which L3 route becomes the default is an open decision for the owner; the trade-offs are recorded insupply-chain/NOTES.md.
Verified versions (2026-10-20)
Pin every action to a full commit SHA (house policy). Exception: SLSA generator
reusable workflows must be referenced by @vX.Y.Z tag, because the generator
refuses to run from a SHA or branch.
| Component | Version | Pin (commit SHA) | Source |
|---|---|---|---|
| SLSA spec | v1.2 (current approved) | — | slsa.dev/spec |
slsa-framework/slsa-github-generator |
v2.1.0 (2025-02-24, latest; unmaintained) | use tag @v2.1.0 |
GitHub releases |
slsa-framework/slsa-verifier |
v2.7.1 (2025-06-27, latest; unmaintained) | — | GitHub releases |
actions/attest |
v4.2.2 | 1e69f48acb82d1966a394da916b4c1698aa569d6 |
GitHub releases |
actions/attest-build-provenance |
v4.2.2 (thin wrapper over actions/attest) |
4d101475d8b20a2381f78447822ac1eab6504dd8 |
GitHub releases |
actions/checkout |
v7.0.1 | 3d3c42e5aac5ba805825da76410c181273ba90b1 |
GitHub releases |
actions/setup-node |
v7.1.0 | 949feb2413d6458794dcd2491c4babbbce0c15c1 |
GitHub releases |
actions/upload-artifact |
v7.0.2 | cf430e030ddbb5b0abf93d22962f4752f3646cd9 |
GitHub releases |
actions/download-artifact |
v8.0.2 (digest mismatch now errors by default) | 9000827ccba6bdab643e8b6fd33ac0654aef8333 |
GitHub releases |
docker/build-push-action |
v7.4.0 | c3c9e263c25d99ce0380d002d59b67737d91b0dc |
GitHub releases |
docker/setup-buildx-action |
v4.4.1 | f87e5991a6d7451dcb8d9637bfbc97413f497069 |
GitHub releases |
docker/login-action |
v4.6.0 | dbcb813823bdd20940b903addbd779551569679f |
GitHub releases |
docker/metadata-action |
v6.2.0 | dc802804100637a589fabce1cb79ff13a1411302 |
GitHub releases |
sigstore/cosign |
v3.1.3 | — | GitHub releases |
sigstore/cosign-installer |
v4.1.2 (installs cosign v3.0.6 by default) | 6f9f17788090df1f26f669e9d70d6ae9567deba6 |
GitHub releases |
| npm CLI | 12.2.0 (latest); 11.21.1 on the 11.x line |
— | npm view npm |
What SLSA is (and isn't)
SLSA is not a package, an action, or a vendor. It is a maturity framework. The familiar numbers (L1/L2/L3) are assurance levels on the Build track. Each one adds a stronger guarantee about how trustworthy an artifact's provenance is.
| Level | Guarantee | Roughly achieved by |
|---|---|---|
| Build L1 | Provenance exists: an automated build emits a record of how the artifact was made. Falsifiable. | A build script + recorded metadata |
| Build L2 | Provenance is signed & authenticated and built on a hosted platform. Binds artifact → source repo + builder. | npm trusted publishing / npm publish --provenance; actions/attest in the build job; docker/build-push-action attestations + a signature |
| Build L3 | + Isolation / non-falsifiable: provenance is generated in a trusted control plane the build steps can't reach, and builds can't poison each other's caches. | slsa-github-generator isolated builders, or (per GitHub docs) build + actions/attest in a shared reusable workflow |
SLSA v1.2 is the current approved spec. It adds a Source track (commit and review integrity) next to the Build track. The L1–L3 levels people usually mean are still Build-track levels, and this guide targets the Build track. The spec repo's draft (commit of 2026-10-19) adds a Build L4 with a dependency-completeness requirement. It is not part of approved v1.2, so don't plan against it yet.
The L2 → L3 jump is a trust-model choice
- L2 says "I trust each developer." The platform signs from its control plane, but the build environment is tenant-controlled. Anyone who can influence the pipeline can influence the build.
- L3 says "I trust the platform, not the tenant." Every provenance field is generated or verified in a trusted control plane, which makes it structurally resistant to forgery by build steps.
The SLSA v1.2 isolation requirement spells out three properties: no build can inject entries into another build's cache, no build can reach the platform's signing secrets, and no build can persist state into a later build.
Mini Shai-Hulud (May 2026) is the worked example. Attackers poisoned the pnpm
cache via a pull_request_target workflow. The release job then ran with
id-token: write, malicious code scraped the OIDC token from runner memory, and
84 @tanstack artifacts shipped with cryptographically valid npm provenance. That
provenance was L2. The build broke all three L3 isolation properties
(slsa.dev analysis).
Decision rubric: does this project ship an artifact?
This is the only question that matters. SLSA protects distributed artifacts. If nothing gets downloaded, there's nothing to attest.
| Project archetype | Ships a downloadable artifact? | Target | Recipe |
|---|---|---|---|
| Knowledge base / docs (e.g. the tech-stack repo) | No | n/a: pin Actions, document the build | — |
Next.js app on Netlify/Vercel (dashboard, mail, kipaji-web) |
No: a deploy, not an artifact | SLSA-aware only | hardened CI, no provenance |
| Published npm package / CLI / MCP server | Yes (registry) | Build L3 | A1 (generator) or A2 (reusable workflow) |
| GitHub Release tarball / binary | Yes (release asset) | Build L3 | B1 (generic generator) or B2 (reusable workflow) |
| Container image | Yes (registry) | Build L3 | C1 (container generator) or C2 (reusable workflow) |
Netlify/Vercel deployments don't emit SLSA provenance. To put provenance on a deployed app, you'd build the deployable artifact in GitHub Actions, attest it, and deploy that attested output. That's heavy, and it fights Vercel's build-on-push model. Skip it unless an artifact actually ships.
Platform constraints that decide what's possible
| Constraint | Effect | Source |
|---|---|---|
| npm provenance doesn't work from private source repos (even for public packages) | A private repo gets no npm provenance from trusted publishing or --provenance |
npm trusted-publishers docs |
| GitHub artifact attestations in private/internal repos need GitHub Enterprise Cloud | On Free/Pro/Team, actions/attest works for public repos only |
actions/attest README |
| npm trusted publishing: GitHub-hosted runners only (no self-hosted) | Release jobs must use runs-on: ubuntu-latest (or another hosted image) |
npm trusted-publishers docs |
| Generator with a private repo | Signs via public Sigstore, so the repo name lands in the public Rekor log. Set rekor-log-public: true (nodejs builder) / private-repository: true (generic, container) only after accepting that |
generator workflow inputs |
Two routes to Build L3
Route 1: slsa-github-generator (current documented default) |
Route 2: reusable workflow + actions/attest (GitHub-documented L3) |
|
|---|---|---|
| Who claims L3 | SLSA project ("SLSA3+" builders) | GitHub docs: "Reusable workflows can provide isolation between the build process and the calling workflow, to meet SLSA v1.0 Build Level 3." |
| Maintenance | No longer actively maintained (notice 2026-08-06); last release v2.1.0 (Feb 2025). JS actions declare node20, which GitHub removed from runners on 2026-09-23; the runner now executes them on Node 24 |
First-party, actively released (actions/attest v4.2.2, Aug 2026) |
| Isolation mechanism | Builder runs your build in a separate job; provenance is generated and signed in a different job the build can't touch | Isolation comes from your reusable workflow's design. Keep the build job without id-token: write and attest in a separate job (see A2) |
| Trust root | SLSA project's builder workflows | Whoever controls the shared reusable workflow (SLSA blog: "the trust root moves rather than disappears") |
| Format / storage | .intoto.jsonl on the Release, or npm provenance file |
Sigstore bundle in GitHub's attestations API (and OCI registry for images) |
| Consumer verification | slsa-verifier (unmaintained) / npm audit signatures |
gh attestation verify --signer-workflow … / --signer-repo … |
| npm publishing | Publish action needs an npm token + npm 9.8.1 → breaks when direct-publish tokens go away (Jan 2027) | Plain npm publish / npm stage publish with trusted publishing (OIDC), no token |
| Private repos | Works (public Rekor entry) | Needs GitHub Enterprise Cloud for attestations |
Policy is unchanged: shipped artifacts target Build L3. Until the owner decides
(see NOTES.md → Decision needed), both routes are acceptable. New public-repo
projects should prefer Route 2, because Route 1's npm path has a fixed expiry date.
Recipe A1: npm package via the Node.js isolated builder (Route 1)
The builder runs run-scripts inside an isolated job, packs the tarball, and
generates non-falsifiable provenance. The companion publish action pushes both to npm.
Prerequisites on the package:
private: false, plusrepository,license, and afilesallowlist so only intended files ship.- A granular access token with read/write on the package and Bypass 2FA, stored
as the
NPM_TOKENrepo secret. Legacy "automation"/classic tokens were removed in Nov 2025. Direct publishing with granular tokens ends in January 2027, and this recipe can't switch to stage-only tokens or OIDC (the action pins npm 9.8.1). - A version bump + a
v*git tag to trigger the release.
Full file: supply-chain/examples/release-npm-slsa3-generator.yml.
jobs:
build:
permissions:
id-token: write # OIDC token for Sigstore signing
contents: read
actions: read
if: startsWith(github.ref, 'refs/tags/')
uses: slsa-framework/slsa-github-generator/.github/workflows/builder_nodejs_slsa3.yml@v2.1.0
with:
directory: "." # sub-dir with package.json in a monorepo, e.g. packages/mcp-server
node-version: "24"
run-scripts: "ci, test, build" # runs INSIDE the isolated builder before packing
publish:
needs: [build]
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
steps:
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"
package-manager-cache: false
- uses: slsa-framework/slsa-github-generator/actions/nodejs/publish@v2.1.0
with:
access: public
node-auth-token: ${{ secrets.NPM_TOKEN }}
package-name: ${{ needs.build.outputs.package-name }}
package-download-name: ${{ needs.build.outputs.package-download-name }}
package-download-sha256: ${{ needs.build.outputs.package-download-sha256 }}
provenance-name: ${{ needs.build.outputs.provenance-name }}
provenance-download-name: ${{ needs.build.outputs.provenance-download-name }}
provenance-download-sha256: ${{ needs.build.outputs.provenance-download-sha256 }}
The generator's reusable workflow and actions must use a
@vX.Y.Ztag. Pin everything else to a full SHA.
Recipe A2: npm package via a reusable workflow + actions/attest + trusted publishing (Route 2)
Three pieces:
- A reusable workflow (
.github/workflows/build-attest.yml) with two jobs. Thebuildjob installs, tests, and packs with noid-tokenpermission, so a malicious dependency script can't mint an OIDC token. Theattestjob downloads the tarball (download-artifact v8 fails on digest mismatch), re-checks the sha256, and runsactions/attest. It never executes project code. - A caller (
.github/workflows/release.yml) onv*tags. It calls the reusable workflow, then publishes the same tarball with trusted publishing, so no npm token exists anywhere. - A trusted publisher on npmjs.com that names the caller workflow file. npm
validates the calling workflow's name when
workflow_callis involved, and both parent and child needid-token: writeif the child publishes.
Full files: supply-chain/examples/reusable-build-attest.yml and
supply-chain/examples/release-npm-reusable.yml.
# release.yml (caller): publish job only
publish:
needs: [build]
runs-on: ubuntu-latest
environment: npm-release # optional approval gate
permissions:
contents: read
id-token: write # trusted publishing (OIDC); npm adds L2 provenance automatically
steps:
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"
package-manager-cache: false # never cache in release builds
- run: npm install --global npm@11.21.1 # trusted publishing ≥ 11.5.1, staging ≥ 11.15.0
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with: { name: package, path: dist }
- run: npm stage publish dist/*.tgz --access public # or `npm publish` if direct publish is allowed
What each consumer gets:
- npm registry: npm's own provenance (builder
github.com/actions/runner/github-hosted, an L2 record) plus the registry signature. Check withnpm audit signatures. - L3 claim: the GitHub attestation on the exact tarball. Check with
gh attestation verify pkg.tgz --owner <org> --signer-workflow <org>/<repo>/.github/workflows/build-attest.yml.
Unverified: whether
npm stage publishaccepts a tarball path the same waynpm publishdoes. The staged-publishing doc only shows running it from the package root. Test it once against a scratch package before you rely on it.
Recipe B1: GitHub Release tarball via the generic generator (Route 1)
Build the asset yourself, then hand its subjects (sha256 + name, base64-encoded)
to the generic generator. The generator signs <name>.intoto.jsonl and attaches it
to the Release.
jobs:
build:
runs-on: ubuntu-latest
permissions: { contents: read }
outputs:
hashes: ${{ steps.hash.outputs.hashes }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with: { persist-credentials: false }
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with: { node-version: "24", package-manager-cache: false }
- run: npm ci && npm run build && tar -czf dist.tar.gz dist/
- id: hash
run: echo "hashes=$(sha256sum dist.tar.gz | base64 -w0)" >> "$GITHUB_OUTPUT"
provenance:
needs: [build]
permissions:
actions: read # detect the Actions environment
id-token: write # Sigstore signing
contents: write # upload provenance to the Release
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.1.0
with:
base64-subjects: "${{ needs.build.outputs.hashes }}"
upload-assets: true # attach dist.tar.gz.intoto.jsonl to the Release
Recipe B2: Release tarball via a reusable workflow (Route 2)
Reuse reusable-build-attest.yml from A2, swapping the npm pack step for your
tar/binary build. Then upload the asset with gh release upload. Consumers verify
with gh attestation verify dist.tar.gz --owner <org> --signer-workflow ….
Recipe C: container images
docker/build-push-action (v4+) adds BuildKit provenance automatically:
mode=max on public repos, mode=min on private ones. mode=max includes build-arg
values, so never pass secrets as build args; use secret mounts. BuildKit
provenance defaults to the SLSA v0.2 predicate; set version=v1 for SLSA v1.
These attestations sit unsigned next to the image in the registry. They describe the
build, but they don't prove who built it. For a signed, verifiable claim, add one of:
C1, container generator (Route 1):
slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@v2.1.0
with image + digest inputs. Signs with cosign, verified with slsa-verifier verify-image.
C2, actions/attest with push-to-registry (Route 2 when run in a reusable workflow, L2 otherwise):
permissions:
contents: read
packages: write # push to GHCR
id-token: write
attestations: write
artifact-metadata: write # storage record (org-owned repos)
steps:
- uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with: { registry: ghcr.io, username: "${{ github.actor }}", password: "${{ secrets.GITHUB_TOKEN }}" }
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- id: push
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
push: true
tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }}
provenance: mode=max,version=v1
sbom: true
- uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
with:
subject-name: ghcr.io/${{ github.repository }} # NO tag; digest identifies the image
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
Full file: supply-chain/examples/release-container-attest.yml. Use the image name
in lowercase, and docker.io/... as the registry for Docker Hub.
Recipe D: GitHub artifact attestations in the build job (Build L2)
When L3 is more ceremony than the artifact warrants (internal tools, pre-1.0 experiments), one step gives you signed, verifiable provenance:
permissions: { contents: read, id-token: write, attestations: write }
steps:
# …build dist.tar.gz…
- uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
with: { subject-path: dist.tar.gz }
actions/attest v4 has three modes: provenance (default), SBOM (sbom-path), and
custom (predicate-type). It can also discover subjects from $GITHUB_ARTIFACTS_LIST.
New code should use actions/attest; attest-build-provenance v4 is just a
wrapper. This is Build L2: provenance is generated in the same job that runs
your build, so the build steps can reach the signing identity.
npm publishing hardening (applies to every npm recipe)
| Control | What to do | Version / date |
|---|---|---|
| Trusted publishing (OIDC) | Configure a trusted publisher per package on npmjs.com (org/user, repo, workflow filename, optional environment). Up to 10 per package. Provenance is automatic for public repo + public package, so --provenance isn't needed |
npm CLI ≥ 11.5.1, Node ≥ 22.14.0 |
| Allowed actions | npm stage publish is always allowed. Direct npm publish and npm dist-tag are opt-in per configuration. Configs created after 2026-09-03 default to stage-only |
dist-tag via OIDC: npm ≥ 11.21.0 / ≥ 12.2.0 |
| First publish within 2 days | An unvalidated trusted-publisher config expires after 2 days. Delete it and recreate | — |
| Disallow tokens | Package → Settings → Publishing access → Require two-factor authentication and disallow tokens (trusted publishers keep working) | — |
| Staged publishing | npm stage publish puts the version in a staging area; a maintainer approves it with 2FA (npm stage approve <stage-id> or the website). New packages get a public 0.0.0-stage placeholder |
npm ≥ 11.15.0, Node ≥ 22.14.0 |
| Token sunset | Classic/legacy tokens are gone (Nov 2025). Bypass-2FA tokens lost account-governance actions in Aug 2026. Direct publishing with granular tokens ends January 2027; use stage-only tokens or OIDC | npm access-token docs |
| No cache in release jobs | package-manager-cache: false on actions/setup-node (Mini Shai-Hulud's entry point was a poisoned cache) |
setup-node v7 |
| npm 12 install-script policy | Dependency lifecycle scripts are blocked by default unless the root package.json allowScripts allows them. Review with npm install-scripts ls, approve with npm install-scripts approve <pkg> (writes pinned pkg@x.y.z entries), then npm rebuild. Commit allowScripts |
npm 12.0.0 (2026-07-08); needs Node ^22.22.2 || ^24.15.0 || >=26.0.0 |
| Lockfile only | npm 12 removed npm-shrinkwrap.json support and defaults allow-git / allow-remote to none |
npm 12.0.0 |
setup-nodev7 no longer exports a dummyNODE_AUTH_TOKEN. Under v6, that placeholder could shadow OIDC detection, so trusted publishing works more cleanly on v7.
Verification (the half people skip)
Provenance nobody verifies buys nothing. Pick the verifier that matches the producer.
| Artifact came from | Verify with |
|---|---|
| npm registry (any provenance) | npm audit signatures; add --json --include-attestations for the full Sigstore bundles. Run the latest npm, since the format evolves |
| GitHub artifact attestations (A2/B2/C2/D) | gh attestation verify <file | oci://image> --owner <org> --signer-workflow <org>/<repo>/.github/workflows/build-attest.yml |
slsa-github-generator release asset (B1) |
slsa-verifier verify-artifact |
slsa-github-generator image (C1) |
slsa-verifier verify-image |
| Cosign-signed image / attestation | cosign verify-attestation --type slsaprovenance1 --certificate-identity-regexp … --certificate-oidc-issuer https://token.actions.githubusercontent.com <image> |
# GitHub attestation built by a reusable workflow: pin the SIGNER, not just the repo
gh attestation verify dist.tar.gz \
--owner codeAmani-Solutions \
--signer-workflow codeAmani-Solutions/<repo>/.github/workflows/build-attest.yml \
--source-ref refs/tags/v1.2.3 \
--deny-self-hosted-runners
# Image, reading the bundle from the registry instead of the GitHub API
gh attestation verify oci://ghcr.io/codeamani-solutions/<image>:v1.2.3 \
--owner codeAmani-Solutions --bundle-from-oci
# Generator-built tarball
slsa-verifier verify-artifact dist.tar.gz \
--provenance-path dist.tar.gz.intoto.jsonl \
--source-uri github.com/codeAmani-Solutions/<repo> \
--source-tag v1.2.3
gh attestation verify enforces the https://slsa.dev/provenance/v1 predicate by
default. Per its manual, only signature.certificate and verifiedTimestamps are
unforgeable by the producing workflow. statement.predicate is workflow-controlled,
so base policy on the certificate (signer workflow, source ref) and not on predicate
fields. With a reusable workflow, you must pass --signer-workflow or --signer-repo.
CI gate: for any dependency that publishes provenance, add a verify step in CI so an unverifiable build fails instead of quietly proceeding.
supply-chain/examples/check-provenance.mtsfails CI when an allowlisted package has no verified attestation.
Install
slsa-verifierfrom a release binary, or withgo install github.com/slsa-framework/slsa-verifier/v2/cli/slsa-verifier@v2.7.1. It's unmaintained. Use it for artifacts built by the generator, and prefergh attestation verifyfor everything else.
What SLSA L3 does NOT do (know the boundary)
SLSA attests build integrity, not source benevolence. L3 provenance will faithfully sign an artifact built from malicious source or a compromised dependency. It proves the how and where, not that the code is safe. The Mini Shai-Hulud analysis adds two more gaps:
- An "expected builder" check would have passed for the TanStack packages: the pipeline was legitimate, the code inside it wasn't. What would have caught it was monitoring for publishes from workflow runs that ended in failure.
- SLSA doesn't judge whether a workflow's triggers (
pull_request_target) or permissions are safe. That's workflow hygiene:zizmor, SHA pins, least-privilegepermissions:, and no fork code with secrets.
Provenance complements these and never replaces them: dependency review and lockfile
pinning, secret scanning (gitleaks), code review, the SLSA Source track,
npm 12 allowScripts, and staged publishing with human approval. It defeats
substitution attacks (dependency confusion, tampered artifacts, impostor publishers).
It doesn't defeat insider attacks or hijacked-pipeline attacks.
codeAmani notes
- Plan-time decision. Every new project's plan records a Provenance target using the rubric above. The default for anything that ships an artifact is Build L3.
- Template-scaffolded. The policy points new shippable projects at
codeAmani-labs-projects/_TEMPLATE-PROJECT/.github/workflows/release-slsa3.yml. As of 2026-10-20 that file isn't onmaster; it only exists in WIP/backup commits (221ecc1,17e414f), and that copy still pinssetup-node@v4and Route 1.NOTES.mdhas the change the template needs. Until then, copy fromsupply-chain/examples/. - Always-loaded policy. The summary rubric lives in the root
CLAUDE.md(## Supply-Chain & Provenance (SLSA)), so every Claude Code session inherits it. This refresh didn't change that text; the route decision is inNOTES.md. - Private repos. Most codeAmani repos are private and on a non-Enterprise plan. That means no npm provenance and no GitHub attestations from them. A private repo that ships an artifact either goes public at release time, uses Route 1 (accepting the public Rekor entry and the Jan 2027 npm-token cliff), or moves to Enterprise Cloud. Settle this at plan time.
- Secrets. The only secret any recipe needs is
NPM_TOKEN(A1 only; A2 needs none). Keep it in the Hazina vault / repo secrets, never in a workflow file or chat. Container recipes use the built-inGITHUB_TOKEN. - No payments or AI surface. This guide doesn't touch Stripe/M-Pesa or AI routing. For Kenya-targeted releases, the same rules apply.
- Freshness-tracked. The
docs:URLs above are watched by the tech-stack checker. Re-check the generator's status and npm's January 2027 token change at the next review.
References
- SLSA spec v1.2 — https://slsa.dev/spec/v1.2/ · build requirements — https://slsa.dev/spec/v1.2/build-requirements
- Mini Shai-Hulud: where SLSA's boundaries fall — https://slsa.dev/blog/2026/05/mini-shai-hulud-what-slsa-can-and-cannot-do
- GitHub artifact attestations (L2 alone; L3 with reusable workflows) — https://docs.github.com/en/actions/concepts/security/artifact-attestations
- Reusable workflows → SLSA v1 Build L3 — https://docs.github.com/en/actions/how-tos/secure-your-work/use-artifact-attestations/increase-security-rating
actions/attest— https://github.com/actions/attestgh attestation verify— https://cli.github.com/manual/gh_attestation_verify- slsa-github-generator (maintenance notice) — https://github.com/slsa-framework/slsa-github-generator
- slsa-verifier (maintenance notice) — https://github.com/slsa-framework/slsa-verifier
- npm trusted publishing — https://docs.npmjs.com/trusted-publishers
- npm staged publishing — https://docs.npmjs.com/staged-publishing
- npm access tokens (Jan 2027 direct-publish removal) — https://docs.npmjs.com/about-access-tokens
- npm provenance — https://docs.npmjs.com/generating-provenance-statements
- npm 12 install-scripts — https://docs.npmjs.com/cli/v12/commands/npm-install-scripts
- npm 12.0.0 release notes — https://github.com/npm/cli/releases/tag/v12.0.0
- Docker build attestations in GitHub Actions — https://docs.docker.com/build/ci/github-actions/attestations/
- BuildKit SLSA provenance (v0.2 default, v1 opt-in) — https://docs.docker.com/build/metadata/attestations/slsa-provenance/
- Cosign — https://github.com/sigstore/cosign
- Node 20 removed from Actions runners (2026-09-23) — https://github.blog/changelog/2026-09-23-node-20-is-no-longer-available-in-github-actions/
Official docs:
- https://slsa.dev/spec/v1.2/
- https://slsa.dev/spec/v1.2/build-requirements
- https://docs.github.com/en/actions/concepts/security/artifact-attestations
- https://docs.github.com/en/actions/how-tos/secure-your-work/use-artifact-attestations/increase-security-rating
- https://github.com/actions/attest
- https://github.com/slsa-framework/slsa-github-generator
- https://github.com/slsa-framework/slsa-verifier
- https://docs.npmjs.com/trusted-publishers
- https://docs.npmjs.com/staged-publishing
- https://docs.npmjs.com/generating-provenance-statements
- https://docs.npmjs.com/cli/v12/commands/npm-install-scripts
- https://docs.docker.com/build/ci/github-actions/attestations/
- https://github.com/sigstore/cosign