Skip to content

security: move npm-token from direct interpolation to environment variable#1399

Closed
subhankarmaiti wants to merge 1 commit into
masterfrom
security/move-npm-token-to-env
Closed

security: move npm-token from direct interpolation to environment variable#1399
subhankarmaiti wants to merge 1 commit into
masterfrom
security/move-npm-token-to-env

Conversation

@subhankarmaiti

Copy link
Copy Markdown
Contributor

Move npm-token from direct GitHub Actions input interpolation to environment variable to prevent potential token exposure in logs.

Changes

  • Added env block with NPM_TOKEN variable in the "Verify npm token" step
  • Changed token check from ${{ inputs.npm-token }} to ${NPM_TOKEN} environment variable reference

Security Impact

This change prevents the npm token from being directly interpolated in the shell command, reducing the risk of accidental token exposure in GitHub Actions logs.

@subhankarmaiti
subhankarmaiti requested a review from a team as a code owner December 5, 2025 07:19
@subhankarmaiti
subhankarmaiti marked this pull request as draft December 5, 2025 07:48
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