Skip to content

ci: use OIDC for publishing preview builds - #172

Merged
Mrtenz merged 1 commit into
mainfrom
mrtenz/publish-preview-oidc
Nov 13, 2026
Merged

Mrtenz merged 1 commit into
mainfrom
mrtenz/publish-preview-oidc

Conversation

@Mrtenz

@Mrtenz Mrtenz commented Nov 13, 2026

Copy link
Copy Markdown
Member

Explanation

The preview build workflow passed a long-lived npm token (PUBLISH_PREVIEW_NPM_TOKEN) to the shared publish-preview.yml workflow. It now calls the publish-preview-oidc.yml reusable workflow in MetaMask/github-tools, which authenticates with OIDC. The job grants id-token: write, and the token secret is no longer passed.

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

Switch the preview build workflow to the `publish-preview-oidc.yml` reusable workflow and grant `id-token: write`. Preview builds no longer need the `PUBLISH_PREVIEW_NPM_TOKEN` secret, so they stop relying on a long-lived npm token.
@Mrtenz
Mrtenz marked this pull request as ready for review November 13, 2026 11:43
@Mrtenz
Mrtenz requested a review from a team as a code owner November 13, 2026 11:43
@Mrtenz
Mrtenz deployed to default-branch November 13, 2026 11:43 — with GitHub Actions Active
@Mrtenz
Mrtenz added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit 998c85a Nov 13, 2026
62 checks passed
@Mrtenz
Mrtenz deleted the mrtenz/publish-preview-oidc branch November 13, 2026 11:50

This branch was successfully deployed

1 active deployment
default-branch — daf9951d Deployed Nov 13, 2026 by Mrtenz via Determine whether this PR is a release PR #226
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