Skip to content

Update publish.yml to add id-token permission#17

Open
gracepark wants to merge 1 commit intogithub:mainfrom
gracepark:patch-1
Open

Update publish.yml to add id-token permission#17
gracepark wants to merge 1 commit intogithub:mainfrom
gracepark:patch-1

Conversation

@gracepark
Copy link
Copy Markdown

Part of: https://github.com/github/web-systems/issues/4309

Updated publish workflow to include permissions and modify npm publish commands as we've migrated to OIDC.

Copilot AI review requested due to automatic review settings May 6, 2026 21:03
@gracepark gracepark requested a review from a team as a code owner May 6, 2026 21:03
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the npm publish GitHub Actions workflow to support npm OIDC-based provenance signing by granting id-token: write and switching the publish command to use --provenance.

Changes:

  • Added permissions: id-token: write to enable GitHub OIDC token minting for the workflow.
  • Updated the npm publish step to run npm publish --provenance (and removed the token-based npm whoami/NODE_AUTH_TOKEN usage).
Show a summary per file
File Description
.github/workflows/publish.yml Enables OIDC (id-token) and uses npm publish --provenance for the npm release workflow.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

- run: npm whoami; npm --ignore-scripts publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
- run: npm --ignore-scripts publish --provenance
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