one-is-a-number
v1.0.3
Published
Console logs true if 1 is a finite number
Downloads
3
Readme
one-is-a-number
Example nodejs project to demonstrate SLSA L3 for npm packages.
Generating provenance
Provenance is generated by the build_and_publish workflow, which in turn uses slsa-github-generator
Verifying provenance
Prerequisites
- slsa-verifier
- curl
- jq
- npm
Provenance can be veified with slsa-verifier using the following commands
First, download attestations and the npm package
curl -Sso attestations.json $(npm view [email protected] --json | jq -r '.dist.attestations.url') \
&& curl -Sso one-is-a-number.tgz "$(npm view [email protected] --json | jq -r '.dist.tarball')"
After downloading, verify the package with
SLSA_VERIFIER_EXPERIMENTAL=1 slsa-verifier verify-npm-package one-is-a-number.tgz \
--attestations-path attestations.json \
--builder-id "https://github.com/slsa-framework/slsa-github-generator/.github/workflows/builder_nodejs_slsa3.yml" \
--package-name "one-is-a-number" \
--package-version 1.0.1 \
--source-uri github.com/backjonas/slsa-node-example