Skip to content

chore(ci): restore NPM_TOKEN env on publish step#62

Merged
tangletools merged 1 commit into
developfrom
chore/restore-npm-token
May 31, 2026
Merged

chore(ci): restore NPM_TOKEN env on publish step#62
tangletools merged 1 commit into
developfrom
chore/restore-npm-token

Conversation

@drewstone

Copy link
Copy Markdown
Contributor

Re-attaches NODE_AUTH_TOKEN: secrets.NPM_TOKEN to the publish step. The OIDC-only approach blocked on a 2FA-on-publish org enforcement that can't be flipped quickly; a fresh automation token (no-2FA scope) replaces the rotated/expired secret that has been failing since v0.29.0.

--provenance + id-token: write are retained so each publish still ships a signed Sigstore attestation alongside the token-authed publish.

Unblocks v0.31.0 (541 adapters) reaching npm.

Re-attaches NODE_AUTH_TOKEN: secrets.NPM_TOKEN to the publish step. The OIDC-only approach blocked on a 2FA-on-publish org enforcement that can't be flipped quickly; a fresh automation token (no-2FA scope) replaces the rotated/expired secret that has been failing since v0.29.0. --provenance + id-token: write retained so each publish still ships a signed Sigstore attestation alongside the token-authed publish. Unblocks v0.31.0 (541 adapters) reaching npm.

@tangletools tangletools left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restoring token-auth as a pragmatic unblock; OIDC + provenance retained on the publish step so we don't lose the signed-attestation benefit. Approved as tangletools.

@tangletools tangletools merged commit 6a44c9b into develop May 31, 2026
@tangletools tangletools deleted the chore/restore-npm-token branch May 31, 2026 21:28
tangletools added a commit that referenced this pull request Jun 1, 2026
Drop NPM_TOKEN env path, always pass --provenance, simplify error message to point at the trusted-publisher config. Mirrors the cleanup in tangle-network/agent-dev-container#1550 that flips publish-sandbox-sdk/-cli/hub-sdk to OIDC-only.

Prerequisite: /package/@tangle-network/agent-integrations/access trusted publisher entry must be at PACKAGE level with workflow=publish.yml env=blank. The trusted-publisher entry from session-earlier #61 may still be there (it was reverted to NPM_TOKEN in #62 but the npm-side config is decoupled). If publish fails after merge, verify the entry exists at the package level.

Co-authored-by: Drew Stone <hello@tangle.tools>
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.

2 participants