Skip to content

CICDL-378: Remove unused NPM_PUBLIC_PUBLISH_TOKEN#4

Open
ahmedabdullajev-pi wants to merge 4 commits into
masterfrom
CICDL-378-remove-npm-public-publish-token
Open

CICDL-378: Remove unused NPM_PUBLIC_PUBLISH_TOKEN#4
ahmedabdullajev-pi wants to merge 4 commits into
masterfrom
CICDL-378-remove-npm-public-publish-token

Conversation

@ahmedabdullajev-pi

@ahmedabdullajev-pi ahmedabdullajev-pi commented Jun 15, 2026

Copy link
Copy Markdown

Summary

After completing CICDL-258 (migrate npm publishing to OIDC Trusted Publishers), the NPM_PUBLIC_PUBLISH_TOKEN secret and use_trusted_publisher input are no longer needed. This PR removes the token-based publish code path entirely, making OIDC the only publish method.

All 4 public package repos have PRs to stop passing use_trusted_publisher:

⚠️ Merge order: merge the 4 caller PRs above FIRST, then this PR. Removing the use_trusted_publisher input before callers stop passing it would break their workflows.

What's removed:

  • NPM_PUBLIC_PUBLISH_TOKEN secret input
  • use_trusted_publisher input (from both wrapper and inner workflow)
  • "Validate token configuration" step
  • "Create .npmrc for publishing" step (token-based auth config)
  • NPM_TOKEN env var from the "Publish to NPM" step
  • Pass-through of use_trusted_publisher in the wrapper workflow

Tested

Verified end-to-end in pipedrive/test-public-npm-module#32 — publish workflow pointed to this feature branch (both wrapper and inner workflow), with use_trusted_publisher removed from the caller.

Result: @pipedrive/test-public-npm-module@1.0.19 published successfully via OIDC with signed provenance (run logs):

  • No NPM_PUBLIC_PUBLISH_TOKEN used
  • No .npmrc token auth created
  • No Validate token configuration step ran
  • npm notice publish Signed provenance statement with source and build information from GitHub Actions
  • Provenance statement published to transparency log: https://search.sigstore.dev/?logIndex=1825288959

Remaining cleanup (outside this repo)

Per CICDL-378:

  • Remove NPM_PUBLIC_PUBLISH_TOKEN from GitHub Actions org-level secrets
  • Revoke the corresponding token on npmjs.org for pipedrive-github-publish-bot
  • Remove the secret entry from Keeper

…rkflow

All public packages have migrated to OIDC Trusted Publishers (CICDL-258),
making the token-based publish path dead code.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ahmedabdullajev-pi and others added 3 commits June 15, 2026 16:18
OIDC is now the only publish path — the toggle is no longer needed.
Removes the input from the wrapper (reusable_cicd-npm-publish.yml)
and the inner workflow (reusable_cicd-npm-package-publish.yml).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ting

Will revert before merging.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Test passed — OIDC-only publish verified in test-public-npm-module#32.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant