Skip to content

Support OIDC authentication #50

@gonzaloriestra

Description

@gonzaloriestra

Problem

NPM has deprecated classic tokens. Snapit needs to support OIDC authentication for NPM publishing.

Current Issue

When using OIDC configuration, Snapit fails with: Error: Please provide the NPM_TOKEN to the snapit GitHub action

Example: https://github.com/Shopify/cli/actions/runs/20166056272/job/57889600163

Requirements

  • Support empty NPM_TOKEN for OIDC authentication
  • Work with npm 11.5.1+ (required for OIDC)
  • Support NPM_CONFIG_PROVENANCE: true
  • Compatible with GitHub Actions' id-token: write permission

Impact

All repositories using Snapit are currently blocked from publishing snapshot releases as NPM tokens are no longer functional.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions