Skip to content
Novus Examples
json2.3 KB

in-toto Statement With SLSA Provenance v1

An unsigned in-toto Statement carrying a SLSA v1 provenance predicate for a fictional release: build definition, external parameters, resolved dependencies with digests, and run details naming an invented builder. Every package, version, hash and licence is fictional — the tree describes nothing real.

Preview — first 50 linesjson
{
  "_type": "https://in-toto.io/Statement/v1",
  "subject": [
    {
      "name": "orchard-gateway-4.2.0.tgz",
      "digest": {
        "sha256": "06af88e316cf889e0b72645f235f77c900d48972456b1ff6ba4df49ae24be734"
      }
    }
  ],
  "predicateType": "https://slsa.dev/provenance/v1",
  "predicate": {
    "buildDefinition": {
      "buildType": "https://build.orchard.example/buildtypes/npm/v1",
      "externalParameters": {
        "source": {
          "uri": "git+https://git.orchard.example/orchard/gateway@refs/tags/v4.2.0",
          "digest": {
            "gitCommit": "902ea810fbdd8ff73082bd2873585709f2ca500b"
          }
        },
        "config": {
          "entryPoint": ".orchard/build.yaml",
          "target": "release"
        }
      },
      "internalParameters": {
        "runnerImage": "example-linux:3.20",
        "cacheEnabled": false
      },
      "resolvedDependencies": [
        {
          "uri": "git+https://git.orchard.example/orchard/gateway@refs/tags/v4.2.0",
          "digest": {
            "gitCommit": "902ea810fbdd8ff73082bd2873585709f2ca500b"
          }
        },
        {
          "uri": "https://registry.orchard.example/@orchard-example/router/-/router-2.1.3.tgz",
          "digest": {
            "sha256": "d17f0a5171a018c41cdaaa2701b6c32bf49f7404032fa45e5721e2b794cd2e51"
          }
        },
        {
          "uri": "https://registry.orchard.example/example-logger/-/example-logger-3.4.1.tgz",
          "digest": {
            "sha256": "7fb72ea58987e5327259b66384f96f5e657c3ce5225b8891c567cac6b58430ec"
          }
        }
      ]
76 lines total — download for the full file.

Specifications

Seed
51200
Sample Only
true
Statement Type
in-toto Statement v1
Predicate Type
slsa.dev/provenance/v1
Subjects
1
Resolved Dependencies
3
Line Endings
LF

Testing contract

Expected to pass
Scenario
Verify that a provenance statement's subject digest matches the artifact you are about to install.
Expected result
The single subject exposes a sha256 digest and the builder id build.orchard.example, so a policy that pins builder identity can be evaluated.

What is a .json file?

JSON (JavaScript Object Notation) is a lightweight, text-based data-interchange format representing objects, arrays, strings, numbers, booleans, and null. It is language-independent, human-readable, and the dominant format for web APIs and configuration. It requires a single well-formed root value.

How to use this file

Use an example JSON file to test parsers and serializers, schema validation, Unicode and number-precision handling, and API request or response processing.

How to use this file for testing

“in-toto Statement With SLSA Provenance v1” is a deterministic Novus Examples fixture for JSON parsing, Schema validation, Conversion testing. Flat, deeply nested, JSON Lines, and intentionally invalid JSON for testing parsers and error handling.

Documented properties for this file: seed 51200 · LF. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

SBOM, lockfile, provenance, and advisory fixtures describe the same fabricated component tree across formats, so a converter or scanner can be diffed against a known answer. Every package name, version, hash, and advisory ID is invented — never treat a finding here as real.

Feed the file to your parser and assert it handles the documented quirks — quoted delimiters, embedded newlines, ragged rows, or invalid syntax; the valid↔invalid distinction is labelled in the title.

Code examples

import json

with open("in-toto-slsa-provenance-v1.json") as f:
    data = json.load(f)
print(type(data), len(data))

Generated by generation/supply_chain.py. Free for any use, no attribution required — license.