Files
pruefwerk/fixtures/nightly/eco
Sharang ParnerkarandClaude Opus 5.5 5a184583de
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 5m59s
fix(sbom): stop resolving tenant manifests in shared deployments (#330)
npm lockfile generation, `cargo generate-lockfile` and `cargo metadata`
ran over tenant manifests with no gate, and each connects wherever the
scanned repository says: a committed .npmrc or .cargo/config.toml, or a
URL or git dependency in the manifest itself — outside net_guard. Forcing
our own registry cannot help when the manifest names the host, so they
are now gated like pip-compile, under the same opt-in, with a skip reason
that says why (egress, not code execution).

`cargo audit` read .cargo/audit.toml from the repository too, which could
point it at another advisory database or `ignore` the repository's own
advisories — silencing findings in our report. It keeps running, from a
fresh empty directory with `--file <repo>/Cargo.lock`.

Lockfile generation is now a pure plan plus an executor, and the npm and
pip lockfile lists are shared: pip-compile no longer re-resolves a uv
project and writes a second, fresh requirements.txt beside uv.lock.

The js-no-lockfile nightly target now records `sbom_dependencies` as
skipped instead of resolving; the scanning guide says to commit a lockfile.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-09-23 10:53:25 +02:00
..

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=True and 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.