Package-manager fixtures (#310)
One directory per lockfile variant, uploaded as a source archive. They exist to
prove that the SBOM keeps reading each format: a cataloguer that stops
understanding yarn.lock or uv.lock turns the nightly red instead of quietly
shipping an SBOM that is missing dependencies.
| Directory | Pins versions through | SBOM |
|---|---|---|
js-npm-lock-v3 |
package-lock.json v3 |
4 npm components |
js-yarn-classic |
yarn.lock v1 |
3 npm components |
js-yarn-berry |
yarn.lock with __metadata + npm: resolutions |
3 npm components |
js-pnpm |
pnpm-lock.yaml v9 |
3 npm components |
js-no-lockfile |
nothing — records a skipped sbom_dependencies stage |
none |
js-bun |
bun.lock (Bun's text lockfile, default since 1.2) |
3 npm components |
js-bun-binary |
bun.lockb only — Bun's binary lockfile, unreadable |
none; a recorded sbom_dependencies skip |
py-requirements |
requirements.txt exact pins |
4 pip components |
py-poetry |
poetry.lock |
4 pip components |
py-pipenv |
Pipfile.lock |
4 pip components |
py-uv |
uv.lock |
4 pip components |
py-bare-pyproject |
nothing — records a skipped sbom_dependencies stage |
none |
package-lock.json v2 is covered by fixtures/nightly/archive (#325).
What each one plants
Every fixture carries the same shapes, so a variant's baseline differs only in its SBOM:
- a vulnerable pinned dependency (axios 0.21.1, lodash 4.17.20, express 4.17.1; requests 2.19.1, PyYAML 5.1, Jinja2 2.10, urllib3 1.24.1), so CVEs must appear for it;
- a SAST sink: request input reaching a shell command and an HTML response
(JS), unsafe YAML deserialisation,
shell=Trueand a disabled certificate check (Python); - committed credentials, all expired and made up, so the secret scanner has something to find;
- OAuth client credentials in source and, in the Python fixtures, personal data written to a log;
- ruff violations in the Python fixtures (an unused import and a bare
except), which report without executing anything.
Bun's binary lockfile
bun.lockb is opaque to the SBOM tooling: Syft reads nothing from it. It used to
be worse than a gap — the scanner did not count it as a lockfile, so it ran
npm install --package-lock-only over the Bun project and reported npm's
fresh resolution as the project's versions. Bun lockfiles now count as locked,
so npm never re-resolves a project another manager pinned, and a project locked
only by bun.lockb records why its dependencies were not read and that the text
bun.lock fixes it. The fixture's bun.lockb was produced by Bun 1.2.12.
The two without a lockfile
js-no-lockfile and py-bare-pyproject both record a skipped
sbom_dependencies stage naming the lockfiles to commit, instead of returning
an empty SBOM that looks complete.
Generating a lockfile is off in a shared deployment (#330). pip-compile runs
the project's own build backend. npm and cargo run nothing of the project's,
but fetch from whatever hosts the manifest names — a URL dependency in
package.json is fetched even with no .npmrc and the registry forced — so
resolving a tenant's manifest is egress to hosts the tenant picks.