prisma CLI 7.10.x is published without npm provenance

Open
#30,850 5 comments 5 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
github-actions, node.js, typescript

Research direction

Read the change from #30035 and compare the publishing configuration for the prisma package with the other @prisma/* packages in the same release. Check the GitHub Actions publishing workflow and reproduce the trust downgrade with the provided pnpm commands. Done means prisma releases include a provenance attestation and pnpm accepts the published package under trustPolicy: no-downgrade.

Written by the indexing model from the issue text.

Description

bug/1-unconfirmed kind/bug
Package and version

prisma 7.10.0 and 7.10.1 (CLI). 7.10.1 is the latest 7.x.

What happened?

Since #30035, the prisma package is published with PRISMABOT_NPM_TOKEN instead of OIDC trusted publishing, and 7.10.0 and 7.10.1 ship without a provenance attestation. Every earlier 7.x release had one, and the other @prisma/* packages from the same release still do.

Version Published by Provenance
7.9.1 GitHub Actions yes
7.10.0 prismabot no
7.10.1 prismabot no

pnpm with trustPolicy: no-downgrade treats this as a trust downgrade and refuses to install [email protected] (ERR_PNPM_TRUST_DOWNGRADE). Those projects stay on older CLI versions, which pin [email protected] and [email protected] (via @prisma/config). Both have published advisories that 7.10.1 resolves.

What did you expect to happen?

prisma keeps a provenance attestation like 7.9.x and the other @prisma/* packages. If the bot token has to stay, publishing it from GitHub Actions with id-token: write and npm publish --provenance would still attach provenance.

Minimal reproduction
npm view [email protected] _npmUser.name dist.attestations.provenance.predicateType
npm view [email protected] _npmUser.name dist.attestations.provenance.predicateType
mkdir repro && cd repro
echo '{"name":"repro","private":true}' > package.json
echo 'trustPolicy: no-downgrade' > pnpm-workspace.yaml
pnpm add -D [email protected]
# ERR_PNPM_TRUST_DOWNGRADE
Environment

Node 24.14.1, macOS, pnpm 11.1.1. Not database specific.

Additional context

Introduced by #30035 ("The prisma package cannot use trusted publishing and requires the Prisma bot token").

NPM
Image
Dominant language
TypeScript
Stars
47.8k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
227

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from prisma/orm

All issues in prisma/orm

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.