Twelve package-manager fixtures in fixtures/nightly/eco/, one per lockfile variant, each uploaded as a source archive:
Variant
SBOM from the pinned Syft
npm package-lock.json v3
axios, express, lodash + the root package
yarn classic (yarn.lock v1)
axios, express, lodash
yarn berry (__metadata, npm: resolutions)
axios, express, lodash
pnpm (pnpm-lock.yaml v9)
axios, express, lodash
npm, no lockfile
lodash, minimist + root (npm resolves one)
Bun bun.lock (text, default since 1.2)
axios, express, lodash
Bun bun.lockb only (binary)
none — a recorded sbom_dependencies skip
requirements.txt exact pins
requests, PyYAML, Jinja2, urllib3
poetry
same four
pipenv
same four
uv (uv.lock)
same four
bare pyproject.toml
none — a recorded sbom_dependencies skip
(package-lock.json v2 is already covered by the #325 archive fixture.)
Every fixture plants a vulnerable pinned dependency (so CVEs must appear), a SAST sink, committed secrets (expired, made up), OAuth client credentials in source, and — for Python — personal data written to a log plus ruff violations. fixtures/nightly/eco/README.md says what each one is for.
Fixes the fixtures found
A manifest with no lockfile gave a silently empty SBOM. Syft reads lockfiles, not manifests. pyproject.toml alone, or a Cargo.toml whose lock could not be generated, produced an SBOM with nothing in it and no explanation — the same silent-clean problem as #319. The SBOM stage now records a skipped sbom_dependencies stage naming the manifest and the lockfiles to commit. It checks the tree after lockfile generation, so a lockfile we did generate counts and one we couldn't does not. This also changes fw-cargo-embedded, which has no Cargo.lock.
Bun projects got npm's versions, not their own. Syft reads the text bun.lock fine but nothing from the binary bun.lockb. Worse, lockfile generation did not recognise either as a lockfile, so it ran npm install --package-lock-only over a Bun project and the SBOM reported npm's fresh resolution as the versions the project ships — wrong versions in evidence, not just a gap. Bun lockfiles (and npm-shrinkwrap.json) now count as locked, so npm never re-resolves a project another manager pinned; a project locked only by bun.lockb records that it was not read and that committing the text bun.lock fixes it. The fixture's bun.lockb is a real one produced by Bun 1.2.12.
The code graph was never asserted.#310's acceptance requires it to build for JS, TS and Python. The harness now reads the graph's node count, and a target can set min_graph_nodes — a floor, since counts move with the parsers. All ten ecosystem targets assert it.
Building js-no-lockfile showed that npm install --package-lock-only runs unconditionally (pip-compile is gated, npm and cargo are not), and that both follow registry configuration out of the scanned repository. A committed .npmrc or .cargo/config.toml makes the scanner connect to any host it names — verified against loopback for both — which bypasses net_guard. Filed as #330 with evidence and options. The no-lockfile fixture pins only dependency-free packages so its resolution stays deterministic until #330 decides whether that resolution should happen at all.
All uploads, no per-ecosystem git targets
The issue asks for one variant to go in as an upload so that path is covered. Here all ten do: synthetic fixtures have no git remote, and file:// sources are refused by the ingest guard (MVP-0). The git path is covered by the demo git target.
Verified
All 32 nightly targets blessed on a fresh database and compared on a second fresh one.
cargo fmt --check, clippy with the CI flags, cargo test (372 agent).
Closes #310. Part of #309.
## What
Twelve package-manager fixtures in `fixtures/nightly/eco/`, one per lockfile variant, each uploaded as a source archive:
| Variant | SBOM from the pinned Syft |
|---|---|
| npm `package-lock.json` v3 | axios, express, lodash + the root package |
| yarn classic (`yarn.lock` v1) | axios, express, lodash |
| yarn berry (`__metadata`, `npm:` resolutions) | axios, express, lodash |
| pnpm (`pnpm-lock.yaml` v9) | axios, express, lodash |
| npm, **no lockfile** | lodash, minimist + root (npm resolves one) |
| Bun `bun.lock` (text, default since 1.2) | axios, express, lodash |
| Bun **`bun.lockb` only** (binary) | none — a recorded `sbom_dependencies` skip |
| `requirements.txt` exact pins | requests, PyYAML, Jinja2, urllib3 |
| poetry | same four |
| pipenv | same four |
| uv (`uv.lock`) | same four |
| **bare `pyproject.toml`** | none — a recorded `sbom_dependencies` skip |
(`package-lock.json` v2 is already covered by the #325 archive fixture.)
Every fixture plants a vulnerable pinned dependency (so CVEs must appear), a SAST sink, committed secrets (expired, made up), OAuth client credentials in source, and — for Python — personal data written to a log plus ruff violations. `fixtures/nightly/eco/README.md` says what each one is for.
## Fixes the fixtures found
**A manifest with no lockfile gave a silently empty SBOM.** Syft reads lockfiles, not manifests. `pyproject.toml` alone, or a `Cargo.toml` whose lock could not be generated, produced an SBOM with nothing in it and no explanation — the same silent-clean problem as #319. The SBOM stage now records a skipped `sbom_dependencies` stage naming the manifest and the lockfiles to commit. It checks the tree *after* lockfile generation, so a lockfile we did generate counts and one we couldn't does not. This also changes `fw-cargo-embedded`, which has no `Cargo.lock`.
**Bun projects got npm's versions, not their own.** Syft reads the text `bun.lock` fine but nothing from the binary `bun.lockb`. Worse, lockfile generation did not recognise either as a lockfile, so it ran `npm install --package-lock-only` over a Bun project and the SBOM reported **npm's fresh resolution** as the versions the project ships — wrong versions in evidence, not just a gap. Bun lockfiles (and `npm-shrinkwrap.json`) now count as locked, so npm never re-resolves a project another manager pinned; a project locked only by `bun.lockb` records that it was not read and that committing the text `bun.lock` fixes it. The fixture's `bun.lockb` is a real one produced by Bun 1.2.12.
**The code graph was never asserted.** #310's acceptance requires it to build for JS, TS and Python. The harness now reads the graph's node count, and a target can set `min_graph_nodes` — a floor, since counts move with the parsers. All ten ecosystem targets assert it.
## Found, not fixed here: #330
Building `js-no-lockfile` showed that `npm install --package-lock-only` runs unconditionally (pip-compile is gated, npm and cargo are not), and that both **follow registry configuration out of the scanned repository**. A committed `.npmrc` or `.cargo/config.toml` makes the scanner connect to any host it names — verified against loopback for both — which bypasses `net_guard`. Filed as #330 with evidence and options. The no-lockfile fixture pins only dependency-free packages so its resolution stays deterministic until #330 decides whether that resolution should happen at all.
## All uploads, no per-ecosystem git targets
The issue asks for one variant to go in as an upload so that path is covered. Here all ten do: synthetic fixtures have no git remote, and `file://` sources are refused by the ingest guard (MVP-0). The git path is covered by the demo git target.
## Verified
- All 32 nightly targets blessed on a fresh database and compared on a second fresh one.
- `cargo fmt --check`, clippy with the CI flags, `cargo test` (372 agent).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
Twelve package-manager variants, each uploaded as a source archive with a
vulnerable pinned dependency, a SAST sink, committed (fake) credentials,
OAuth and PII patterns, and ruff violations for Python: npm lockfile v3,
yarn classic and berry, pnpm, Bun's text and binary lockfiles, npm with no
lockfile, requirements.txt, poetry, pipenv, uv, and a bare pyproject.toml.
Fixes the fixtures turned up:
- A manifest with no lockfile gave a silently empty SBOM: Syft reads
lockfiles, not manifests. The SBOM stage now records a skipped
`sbom_dependencies` stage naming the manifest and what to commit,
checked after lockfile generation so a generated lockfile counts.
- Bun projects got npm's versions. Neither Bun lockfile counted as a
lockfile, so npm re-resolved the project and the SBOM reported its
fresh resolution as the shipped versions. Bun lockfiles (and
npm-shrinkwrap.json) now count; a project locked only by the binary
bun.lockb, which Syft cannot read, says so and names the text bun.lock.
- The code graph was never asserted. The harness now reads its node
count, and targets can set a `min_graph_nodes` floor.
The npm no-lockfile fixture pins only dependency-free packages, so npm's
resolution is the same every night. That resolution follows registry
configuration from the scanned repository, which is #330.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang
merged commit 44a48957c1 into main2026-09-23 08:15:01 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #310. Part of #309.
What
Twelve package-manager fixtures in
fixtures/nightly/eco/, one per lockfile variant, each uploaded as a source archive:package-lock.jsonv3yarn.lockv1)__metadata,npm:resolutions)pnpm-lock.yamlv9)bun.lock(text, default since 1.2)bun.lockbonly (binary)sbom_dependenciesskiprequirements.txtexact pinsuv.lock)pyproject.tomlsbom_dependenciesskip(
package-lock.jsonv2 is already covered by the #325 archive fixture.)Every fixture plants a vulnerable pinned dependency (so CVEs must appear), a SAST sink, committed secrets (expired, made up), OAuth client credentials in source, and — for Python — personal data written to a log plus ruff violations.
fixtures/nightly/eco/README.mdsays what each one is for.Fixes the fixtures found
A manifest with no lockfile gave a silently empty SBOM. Syft reads lockfiles, not manifests.
pyproject.tomlalone, or aCargo.tomlwhose lock could not be generated, produced an SBOM with nothing in it and no explanation — the same silent-clean problem as #319. The SBOM stage now records a skippedsbom_dependenciesstage naming the manifest and the lockfiles to commit. It checks the tree after lockfile generation, so a lockfile we did generate counts and one we couldn't does not. This also changesfw-cargo-embedded, which has noCargo.lock.Bun projects got npm's versions, not their own. Syft reads the text
bun.lockfine but nothing from the binarybun.lockb. Worse, lockfile generation did not recognise either as a lockfile, so it rannpm install --package-lock-onlyover a Bun project and the SBOM reported npm's fresh resolution as the versions the project ships — wrong versions in evidence, not just a gap. Bun lockfiles (andnpm-shrinkwrap.json) now count as locked, so npm never re-resolves a project another manager pinned; a project locked only bybun.lockbrecords that it was not read and that committing the textbun.lockfixes it. The fixture'sbun.lockbis a real one produced by Bun 1.2.12.The code graph was never asserted. #310's acceptance requires it to build for JS, TS and Python. The harness now reads the graph's node count, and a target can set
min_graph_nodes— a floor, since counts move with the parsers. All ten ecosystem targets assert it.Found, not fixed here: #330
Building
js-no-lockfileshowed thatnpm install --package-lock-onlyruns unconditionally (pip-compile is gated, npm and cargo are not), and that both follow registry configuration out of the scanned repository. A committed.npmrcor.cargo/config.tomlmakes the scanner connect to any host it names — verified against loopback for both — which bypassesnet_guard. Filed as #330 with evidence and options. The no-lockfile fixture pins only dependency-free packages so its resolution stays deterministic until #330 decides whether that resolution should happen at all.All uploads, no per-ecosystem git targets
The issue asks for one variant to go in as an upload so that path is covered. Here all ten do: synthetic fixtures have no git remote, and
file://sources are refused by the ingest guard (MVP-0). The git path is covered by the demo git target.Verified
cargo fmt --check, clippy with the CI flags,cargo test(372 agent).🤖 Generated with Claude Code
https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p