Skip to content

reusable-provenance: npm pack runs prepack without dependencies installed #444

Closed

Description

@Shinrai

SLSA provenance fails for any package whose prepack runs a build. In llm-translator, prepack is npm run build (tsup). The "Pack tarballs and compute subjects" step in reusable-provenance.yml runs npm pack ., npm runs prepack first, and the job never installs dependencies:

sh: 1: tsup: not found
##[error]Process completed with exit code 127.

The signing job is then skipped, so no .intoto.jsonl gets attached to the release. It's failed on every llm-translator release since the tsup build went in:

The publish itself is fine; only provenance is missing.

The step already overlays the publish run's build artifact, so the rebuild isn't needed. npm pack --ignore-scripts (on the core pack and the satellite loop) should fix it. One thing to check before changing it: the subjects have to match what the publish run packed, so confirm the publish side doesn't depend on prepack output beyond what's in the artifact.

It also fails the run, while the comments say provenance is best-effort and should skip cleanly. Any other repo with a build in prepack probably hits the same thing.

Activity

  1. added
    type: bug
    priority: medium
    status: confirmed
    type: ci
    status: in progress
    and removed
    status: confirmed
    on Nov 8, 2026
  2. added a commit that references this issue on Nov 8, 2026
    5ef54d9
  3. added
    status: implemented
    and removed
    status: in progress
    on Nov 8, 2026
  4. cldmv-bot commented on Nov 8, 2026

    @cldmv-bot
    Contributor

    Marked status: implemented — resolved by #445, merged into next. This issue closes automatically when that work ships to the default branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumstatus: implementedtype: bugtype: ci

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions