Skip to content

chore: update to OIDC npm Trusted Publishing#447

Merged
charly-bg merged 1 commit into
masterfrom
chore/update-oddish-action-oidc
Jun 9, 2026
Merged

chore: update to OIDC npm Trusted Publishing#447
charly-bg merged 1 commit into
masterfrom
chore/update-oddish-action-oidc

Conversation

@decentraland-bot

@decentraland-bot decentraland-bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Pin oddish-action to 0074f2d with OIDC/Trusted Publishing support
  • Remove NODE_AUTH_TOKEN — OIDC replaces long-lived npm tokens
  • Bump actions/checkout and actions/setup-node to v6 (node24 runtime)
  • Add actions/setup-node@v6 with node-version: 24 to publish workflow (provides npm 11.x for Trusted Publishing)
  • Add contents: read to permissions block

Test plan

  • Verify workflow passes CI validation
  • Confirm Trusted Publishing is configured on npmjs.com for this package
  • Merge and verify publish succeeds on next push to master

- Pin oddish-action to 0074f2d (OIDC support)
- Remove NODE_AUTH_TOKEN (use OIDC instead)
- Bump actions/checkout and actions/setup-node to v6 (node24 runtime)
- Add setup-node with node-version 24 to publish workflow
- Add contents: read to permissions block
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying ui2 with  Cloudflare Pages  Cloudflare Pages

Latest commit: 95e7c8a
Status: ✅  Deploy successful!
Preview URL: https://118f5de4.ui2-423.pages.dev
Branch Preview URL: https://chore-update-oddish-action-o.ui2-423.pages.dev

View logs

@decentraland-bot decentraland-bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Review: chore: update to OIDC npm Trusted Publishing

Files changed: 2 (+11 −6)

Summary

Clean, well-scoped migration from long-lived NPM_TOKEN to OIDC Trusted Publishing. Follows the validated pattern from decentraland/protocol PRs #416 and #417. All changes are correct.

Key Changes Verified

  • oddish-action SHA-pinned to 0074f2d — supply chain hardening
  • NODE_AUTH_TOKEN removed — OIDC replaces long-lived npm tokens
  • actions/checkout and actions/setup-node bumped to v6 (node24 runtime)
  • actions/setup-node@v6 with node-version: 24 added to master.yml (was previously missing — critical for npm 11.x / Trusted Publishing)
  • contents: read + id-token: write — minimal, explicit permissions
  • ✅ Git conventions (ADR-6): PR title and branch name follow semantic format

Security Review

  • No hardcoded secrets or credentials
  • OIDC is a strict security improvement over long-lived tokens
  • SHA-pinning on oddish-action prevents tag hijacking
  • Minimal permission scoping is correct
  • No security issues found

Findings

# Severity Finding
1 P2 actions/checkout@v6 and actions/setup-node@v6 use tag refs while oddish-action is SHA-pinned — minor inconsistency, acceptable for first-party GitHub actions
2 P2 pull-request.yml retains id-token: write which isn't needed for a non-publishing workflow — harmless but unnecessary

Pre-merge Prerequisite

⚠️ Ensure Trusted Publishing is configured on npmjs.com for this package. Without it, the first publish after merge will fail with ENEEDAUTH. Both sides must be set up: the GitHub Action (done in this PR) and the npmjs.com Trusted Publisher entry.

Verdict

APPROVE — No P0 or P1 findings. The migration is correct and follows the org-wide established pattern.

Note: Unable to submit as formal approval because the PR was authored by the same bot account.


Reviewed by Jarvis 🤖 · Requested by Charly via Slack

@charly-bg charly-bg merged commit a51216e into master Jun 9, 2026
5 checks passed
@charly-bg charly-bg deleted the chore/update-oddish-action-oidc branch June 9, 2026 12:11
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