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.
You’re reading version sha-bfe4f3fe814a. Go to the current version
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
- Native
data.digestbinds the exact lockfile object; the SBOM serial number and metadata carry that digest, so the inventory cannot drift from its source. - Deterministic extraction reads the modern
packagesmap (or the classic nesteddependenciesmap) and keeps only pinned components with versions, each with its evidence location inside the lockfile. - Licenses are normalized, counted, and risk-flagged: strong copyleft is
high, weak copyleft ismedium, missing license evidence isreview. Risks are surfaced, never suppressed. - 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.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 sha-bfe4f3fe814a, shown as its exact bytes.
| Runner |
|
|---|---|
| Profile digest | sha256:93043d7fecad39ea3a1a1102b4998ab8891461564cf3a7d3c233ce456d9b01f7 |
skill: sbom-generate
version: "0.1.7"
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.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
schema:
required: [schema, decision, lockfile_type, lockfile_digest, sbom, component_count, license_summary, license_risks, validation]
additionalProperties: false
properties:
schema: { const: runx.sbom.v1 }
decision: { type: string, enum: [generated, refused] }
lockfile_type: { type: string, enum: [package-lock, npm-shrinkwrap] }
lockfile_digest: { type: string, pattern: "^sha256:[0-9a-f]{64}$" }
sbom:
type: [object, "null"]
required: [bomFormat, specVersion, serialNumber, version, metadata, components]
additionalProperties: false
properties:
bomFormat: { const: CycloneDX }
specVersion: { const: "1.5" }
serialNumber: { type: string, pattern: "^urn:uuid:[0-9a-f-]{36}$" }
version: { const: 1 }
metadata: { type: object, additionalProperties: true }
components:
type: array
maxItems: 10000
items:
type: object
required: [type, name, version, license, properties]
additionalProperties: false
properties:
type: { const: library }
name: { type: string, minLength: 1, maxLength: 500 }
version: { type: string, minLength: 1, maxLength: 200 }
license: { type: string, minLength: 1, maxLength: 500 }
properties:
type: array
maxItems: 10
items:
type: object
required: [name, value]
additionalProperties: false
properties:
name: { type: string, minLength: 1, maxLength: 200 }
value: { type: string, minLength: 1, maxLength: 2000 }
component_count: { type: integer, minimum: 0 }
license_summary:
type: [object, "null"]
required: [total_components, license_counts]
additionalProperties: false
properties:
total_components: { type: integer, minimum: 1 }
license_counts: { type: object, additionalProperties: { type: integer, minimum: 1 } }
license_risks:
type: array
maxItems: 10000
items:
type: object
required: [component, version, license, risk, reason, evidence_location]
additionalProperties: false
properties:
component: { type: string, minLength: 1, maxLength: 500 }
version: { type: string, minLength: 1, maxLength: 200 }
license: { type: string, minLength: 1, maxLength: 500 }
risk: { type: string, enum: [high, medium, review] }
reason: { type: string, minLength: 1, maxLength: 2000 }
evidence_location: { type: string, minLength: 1, maxLength: 2000 }
validation:
type: object
required: [status, findings]
additionalProperties: false
properties:
status: { type: string, enum: [pass, fail] }
findings:
type: array
maxItems: 50
items:
type: object
required: [code, message]
additionalProperties: false
properties:
code: { type: string, minLength: 1, maxLength: 200 }
message: { type: string, minLength: 1, maxLength: 2000 }
artifacts:
named_emits:
sbom_result: sbom_result
Published package and test evidence.
This exact version passed its recorded harness run: 5 checks passed · 0 failed.
Test result
| Harness result | Passed |
|---|---|
| Tested version | sha-bfe4f3fe814a |
| Recorded result | 5 checks passed · 0 failed |
| Result source | Reported by the publisher (runx_registry_publish) |
| Suite | runx-harness |
| Test recorded | |
| Declared cases | 4 |
| Test record | Open the recorded run |
Inspect receipt references
sha256:e78c03756ff6994a7e562b67271c5c346638e92219f12f6e35ff2c98c4a7876fsha256:72dc6ebf5204df68c3a3dab752bfda29e3902071beb0d1a9773041300be50004sha256:271685a7ffd4a6f4633ea35203b745a83af8bf65194e4a0c286b357b66c0f1d3sha256:07e6350855fea478139b531db3ed8cd7a02758b70541eca555a7a524f3e46a22sha256:64ffb362ac5c4be65586ceb78dcbaf45d8ad7fcdae0604c4dc3f3abd4e7c6b60Package identity
| Published revision | sha-bfe4f3fe814a |
|---|---|
| Content digest | sha256:bfe4f3fe814a0c590232b5ce191a5d8d55d20294ecf0011ab311178a65d94f27 |
| SKILL.md digest | sha256:3a8d93cb36898c2738dfde6cf93c47b7eee3496544adc85a0f83234bd3caf322 |
| Execution profile digest | sha256:93043d7fecad39ea3a1a1102b4998ab8891461564cf3a7d3c233ce456d9b01f7 |
| Publisher identity | Verified publisher · runx |
| Trust tier | Verified publisherRunx has verified this publisher. This tier is not a code assessment. |
| Attestations |
|
| Source provenance | Not published with this version |
Version history
0.1.8Content digest sha256:d117ccda7e7b2efc4949ddd0840a263488f7ac7a5b62a1faedb16133f1e464d8sha-bfe4f3fe814aViewingContent digest sha256:bfe4f3fe814a0c590232b5ce191a5d8d55d20294ecf0011ab311178a65d94f27