Skip to content

ci: remove the NPM_TOKEN fallback #471

Closed

Description

@uniqueg

Why?

#467 switches releases to npm trusted publishing (OIDC) but keeps NPM_TOKEN as a fallback, in case trusted publishers are missing for some packages. Once a release has gone through OIDC, the long-lived personal token is no longer needed and should not stay usable.

What?

After the first release with trusted publishing (the Release workflow log shows no "Using the NPM_TOKEN fallback" notice and the npm package pages show provenance for the new version):

  • Remove the step "Configure npm token (fallback)" from .github/workflows/release.yml.
  • Delete the NPM_TOKEN repository secret and revoke the token on npmjs.com (its owner).
  • Optionally, on npmjs.com, set each package to "Require two-factor authentication and disallow tokens" (Settings → Publishing access), so that only trusted publishing can publish.

Acceptance criteria

  • Releases publish without any npm token.

Activity

  1. added
    priority: medium
    status: blocked
    type: ci / cd
    type: security
    workload: minutes
    on Oct 26, 2026
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: blockedtype: ci / cdtype: securityworkload: minutes

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions