SBOM

Derive a CycloneDX software bill of materials from a supplied lockfile deterministically, digest-bound to the exact bytes, with license risks surfaced and unsupported or unpinned lockfiles refused.

Overview

Turn one lockfile into a verifiable component inventory. The caller supplies the parsed lockfile; nothing is fetched, so the same input always seals the same SBOM. This is the inventory layer of the security pipeline: sbom-generate derives what is present, cve-audit detects what is vulnerable.

In the manual

Runner

  • make

Declared by its execution profile. Read the profile

SKILL.md

SBOM Generate

Turn one lockfile into a verifiable component inventory. The caller supplies the parsed lockfile; nothing is fetched, so the same input always seals the same SBOM. This is the inventory layer of the security pipeline: sbom-generate derives what is present, cve-audit detects what is vulnerable.

Procedure

  1. Native data.digest binds the exact lockfile object; the SBOM serial number and metadata carry that digest, so the inventory cannot drift from its source.
  2. Deterministic extraction reads the modern packages map (or the classic nested dependencies map) and keeps only pinned components with versions, each with its evidence location inside the lockfile.
  3. Licenses are normalized, counted, and risk-flagged: strong copyleft is high, weak copyleft is medium, missing license evidence is review. Risks are surfaced, never suppressed.
  4. A lockfile that is not an object, carries no dependency map, or pins no components refuses with findings instead of emitting an empty inventory.

To inventory a remote lockfile, compose web-fetch for the governed read and pass its content here; the digest binds whatever bytes were supplied.

Output

sbom_result (runx/sbom-generate.sbom.v1) carries decision (generated, refused), the CycloneDX 1.5 sbom or null, component_count, license_summary, license_risks, validation, and the lockfile digest.

Inputs are lockfile and optional lockfile_type (package-lock, npm-shrinkwrap).

Published execution profile

The execution profile published with 0.1.8, shown as its exact bytes.

Runner
  • make
Profile digestsha256:241e4c79e9e62f018f6f5018f86d7c2021a3b57eb8ce5c503c5f2ddbdbee0267
skill: sbom-generate
version: "0.1.8"

catalog:
  kind: graph
  audience: public
  visibility: public
  category: security
  role: canonical
  execution: read
  completion: runtime_receipt
  approval: none

harness:
  files: [fixtures/support/composed.graph]
  cases:
    - name: sbom-generate-package-lock-generates
      operator_journeys:
        - mode: standalone
          confusors: [cve-audit, extract]
          request: Produce a software bill of materials from this lockfile before the release review.
          expected_outcome: Return a CycloneDX inventory digest-bound to the exact lockfile, with license risks surfaced and nothing fetched.
        - mode: composed
          request: Continue from this generated SBOM into the dependency vulnerability audit.
          expected_outcome: Hand the sealed inventory to cve-audit without re-parsing the lockfile.
          prior_evidence:
            - The lockfile and sealed SBOM supplied by the prior step.
          must_not_repeat:
            - Do not re-derive the component inventory already sealed.
      inputs:
        lockfile:
          name: demo-app
          version: "1.2.0"
          lockfileVersion: 3
          packages:
            "":
              name: demo-app
              version: "1.2.0"
            node_modules/left-pad:
              version: 1.3.0
              license: WTFPL
            node_modules/strong-copyleft-lib:
              version: 2.0.0
              license: AGPL-3.0-only
            node_modules/mystery-lib:
              version: 0.9.1
        lockfile_type: package-lock
      expect:
        status: sealed
        steps: [digest-lockfile, make]
        step_outputs:
          make:
            subset:
              sbom_result:
                data:
                  schema: runx/sbom-generate.sbom.v1
                  decision: generated
                  lockfile_type: package-lock
                  component_count: 3
                  license_summary:
                    total_components: 3
                    license_counts:
                      AGPL-3.0-only: 1
                      UNKNOWN: 1
                      WTFPL: 1
                  validation: { status: pass, findings: [] }
        receipt: { schema: runx.receipt.v1 }

    - name: sbom-generate-classic-dependencies-generate
      inputs:
        lockfile:
          name: legacy-app
          version: "0.4.0"
          dependencies:
            express:
              version: 4.18.2
              license: MIT
              dependencies:
                accepts:
                  version: 1.3.8
        lockfile_type: npm-shrinkwrap
      expect:
        status: sealed
        steps: [digest-lockfile, make]
        step_outputs:
          make:
            subset:
              sbom_result:
                data:
                  decision: generated
                  component_count: 2
                  validation: { status: pass, findings: [] }
        receipt: { schema: runx.receipt.v1 }

    - name: sbom-generate-unpinned-lockfile-refuses
      inputs:
        lockfile:
          name: empty-app
          version: "1.0.0"
        lockfile_type: package-lock
      expect:
        status: sealed
        steps: [digest-lockfile, make]
        step_outputs:
          make:
            subset:
              sbom_result:
                data:
                  decision: refused
                  sbom: null
                  component_count: 0
                  validation: { status: fail }
        receipt: { schema: runx.receipt.v1 }

    - name: sbom-generate-needs-lockfile
      inputs:
        lockfile_type: package-lock
      expect:
        status: failure

runners:
  make:
    default: true
    inputs:
      lockfile:
        type: json
        required: true
        description: Parsed lockfile object; the caller supplies bytes, composition with web-fetch supplies remote reads.
      lockfile_type:
        type: string
        required: false
        default: package-lock
        description: Declared lockfile family recorded in the SBOM metadata.
        schema: { enum: [package-lock, npm-shrinkwrap] }
    examples:
      - lockfile:
          name: demo-app
          version: "1.0.0"
          packages:
            "":
              name: demo-app
              version: "1.0.0"
            node_modules/left-pad:
              version: 1.3.0
              license: WTFPL
        lockfile_type: package-lock
    result_from: [make]
    steps:
      - id: digest-lockfile
        tool: data.digest
        inputs:
          value: $input.lockfile

      - id: make
        label: derive the CycloneDX inventory deterministically
        inputs:
          lockfile: $input.lockfile
          lockfile_type: $input.lockfile_type
          lockfile_digest: $steps.digest-lockfile.digest_result.digest
        tool: { module: sbom-generate.mjs, export: makeSbom }
        outputs:
          sbom_result:
            type: object
        artifacts:
          named_emits:
            sbom_result: sbom_result
          packets:
            sbom_result: runx/sbom-generate.sbom.v1

Published package and test evidence.

This exact version passed its recorded harness run: 5 checks passed · 0 failed.

Test result

Harness resultPassed
Tested version0.1.8
Recorded result5 checks passed · 0 failed
Result sourceRun by the Runx registry at publication
Suiterunx-harness
Test recorded
Declared cases4
Test recordOpen the recorded run
Inspect receipt referencessha256:9871c0a5754e1953a004ffa538270e586d6b015c489eda9141c7aa9cdf5513f0sha256:2d050309a017ecfad4c95d840b495f3bb7d64cbe82513d6dc6f369b8357602f2sha256:4379fda72bc5eec73ef84795510e6123a2edee0c19aeb7c1811b0fb5ab83b9f4sha256:52179bd17f19f248eb98fbfc0f22575c1b27f7141886084598e410218624e864sha256:67e9907501258a14d3afe398692a8dd33360a234f37b7ea97937a85994a4cb48

Package identity

Published revision0.1.8
Content digestsha256:d117ccda7e7b2efc4949ddd0840a263488f7ac7a5b62a1faedb16133f1e464d8
SKILL.md digestsha256:0ffa704474c1f5fe9ebed4a9b72291eb9f15c525967065edf2d4ebff26365be3
Execution profile digestsha256:241e4c79e9e62f018f6f5018f86d7c2021a3b57eb8ce5c503c5f2ddbdbee0267
Publisher identityVerified publisher · runx
Trust tierVerified publisherRunx has verified this publisher. This tier is not a code assessment.
Attestations
  • Publisher · Verifiedrunx · 25 Oct 2026
Source provenanceNot published with this version

Version history

  1. 0.1.8ViewingContent digest sha256:d117ccda7e7b2efc4949ddd0840a263488f7ac7a5b62a1faedb16133f1e464d8
  2. sha-bfe4f3fe814aContent digest sha256:bfe4f3fe814a0c590232b5ce191a5d8d55d20294ecf0011ab311178a65d94f27