prisma CLI 7.10.x is published without npm provenance
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
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
- Dominant language
- TypeScript
- Stars
- 47.8k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 227
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from prisma/orm
-
bug/1-unconfirmed kind/bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
get-platform: distros with ID_LIKE=alpine are not detected as musl, so glibc engines are used on Alpine-based imagesPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
prisma/orm#31281 · 1 comment ·
Maintainers usually reply within 1 day
-
adapter-pg: connectToShadowDb connects to the main database when built from a connection stringMay be free again @cestercian claimed this 10 days ago, and no pull request is open. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
prisma/orm#31196 · 1 comment ·
Maintainers usually reply within 1 day
-
[Prisma 8] Type-check time grows exponentially with chained .include() callsPossibly taken @SiKreuz claimed this 13 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
prisma/orm#31161 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
prisma/orm#31125 · 4 comments · 6 reactions ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
tenstorrent/ttnn-visualizer#2526 ·
Maintainers usually reply within 1 day
-
trySessionCache calls /get-session twice when minting session_data (cache miss or expired cookie)Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
neondatabase/neon-js#301 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
tashfeenahmed/freellmapi#2305 ·
Maintainers usually reply within 1 day