Offline, read-only check of an exported OCI image manifest against a caller-supplied expected SHA-256 digest and an Ed25519-signed provenance bundle. It never contacts a registry, pulls an image, discovers trust roots, or signs anything. The trust policy must contain the public keys the operator already trusts. A signature over the wrong digest, source commit, or builder is not a pass.
This walkthrough uses the tool's public README and checked-in example files. Run the command from a repository checkout with Node.js 22+.
Run the checked-in example
node bin/container-image-provenance-checker.mjs --root examples --policy policy.json --manifest manifest.json --bundle bundle.json
node bin/container-image-provenance-checker.mjs --root examples --policy failing-policy.json --manifest manifest.json --bundle bundle.jsonRead the result
The first command exits 0; the second exits 1 with artifact-digest-mismatch. Fixtures use synthetic source identifiers and a public-only test key. The private fixture signing key was ephemeral and is not packaged.