Skip to content

fix(release): add scoped temporary npm credential fallback - #9

Merged
usavkov-epam merged 1 commit into
mainfrom
codex/npm-token-fallback
Oct 20, 2026
Merged

usavkov-epam merged 1 commit into
mainfrom
codex/npm-token-fallback

Conversation

@usavkov-epam

Copy link
Copy Markdown
Contributor

npm rejects immutable GitHub OIDC subjects before publishing despite valid trusted-publisher configuration. Allow a temporary NPM_RELEASE_TOKEN in the Production environment to authenticate SDK and CLI publication while retaining provenance and every existing quality/native gate.

The secret is passed only to authentication and publication steps. Verification/native build jobs never receive it. Removing the environment secret restores OIDC. The SDK recovery may use a new flat recovery tag, compatible with Production's existing tag policy, while publishing the original immutable SDK revision. Anonymous SDK availability and provenance are verified after publication, so staged versions do not count as released.

The recovery runbook documents one-day expiration, eleven explicit package permissions, no organization administration rights, private secret setup, and credential cleanup.

Validation: 40 release-boundary tests passed, including credential isolation and rejection of unrelated recovery refs; lint, formatting, YAML/shell syntax, and git diff checks passed.

@usavkov-epam
usavkov-epam merged commit 8226586 into main Oct 20, 2026
22 checks passed
@usavkov-epam
usavkov-epam deleted the codex/npm-token-fallback branch October 20, 2026 14:47
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