microsoft / microsoft/DefinitelyTyped-tools

Consider adopting npm trusted publishing

Open
#1,203 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
423
Forks
237
Avg merge
18h 18m
Merged PRs (30d)
11

Description

Recent supply chain attacks on npm have highlighted the need for stronger package publishing security. The September 2025 Shai-Hulud worm compromised 500+ packages through stolen maintainer tokens, showing the risks of token-based publishing.

Trusted publishing helps by eliminating long-lived tokens that can be stolen or accidentally exposed; generating automatic provenance provides cryptographic proof of where/how packages are built; and is an industry standard adopted by PyPI, RubyGems, crates.io, NuGet, etc.

npm is planning to deprecate legacy tokens and make trusted publishing the preferred method.

I know that this repository has a non-standard publishing workflow, which makes adoption trickier than the documentation makes it out. But given that it publishes all @types/* packages I think it would provide a huge uplift and set a good example for the whole Node ecosystem.

References:

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start with the linked npm trusted publishing documentation and provenance statements guide, then inspect this repository’s non-standard publishing workflow. Determine the changes needed to adopt trusted publishing for the @types/* packages; done means the workflow supports the new publishing method and provenance requirements.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
release, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.