Skip to content

fix(ci): use OIDC for npm auth, remove expired NPM_TOKEN#638

Merged
trieloff merged 2 commits intomainfrom
fix/oidc-npm-auth
Apr 14, 2026
Merged

fix(ci): use OIDC for npm auth, remove expired NPM_TOKEN#638
trieloff merged 2 commits intomainfrom
fix/oidc-npm-auth

Conversation

@trieloff
Copy link
Copy Markdown

Summary

  • Add id-token: write permission to the test job so the semantic-release dry-run can authenticate via npm OIDC trusted publishers
  • Remove NPM_TOKEN secret references from both test and release jobs since OIDC replaces token-based auth

This unblocks PR #635 and any other PRs blocked by the expired ADOBE_BOT_NPM_TOKEN secret.

Test plan

  • CI passes on this PR (the dry-run semantic-release step should now authenticate via OIDC)
  • After merge, re-run CI on chore(deps): update external #635 to confirm it's unblocked

🤖 Generated with Claude Code

The semantic-release dry-run in the test job was failing because it lacked
id-token:write permission for OIDC and fell back to an expired NPM_TOKEN.
Since npm trusted publishers with OIDC is already configured for the release
job, grant the same permission to the test job and remove the NPM_TOKEN
secret references from both jobs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Signed-off-by: Lars Trieloff <lars@trieloff.net>
Copilot AI review requested due to automatic review settings April 14, 2026 17:02
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

…push access

The dry-run performs `git push --dry-run` to verify permissions, which
requires write access to repository contents.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Signed-off-by: Lars Trieloff <lars@trieloff.net>
@github-actions
Copy link
Copy Markdown

This PR will trigger a patch release when merged.

@trieloff trieloff merged commit 2d2dfbb into main Apr 14, 2026
9 checks passed
@trieloff trieloff deleted the fix/oidc-npm-auth branch April 14, 2026 17:05
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 GitHub Actions workflow to authenticate npm operations via OIDC (trusted publishers) instead of relying on an expired NPM_TOKEN, unblocking semantic-release dry-runs and releases.

Changes:

  • Add id-token: write permission to the test job for npm OIDC auth during semantic-release dry-run.
  • Remove NPM_TOKEN secret usage from semantic-release dry-run and release steps.
Comments suppressed due to low confidence (1)

.github/workflows/main.yaml:28

  • Step name says "Use Node.js 20.x" but the configured version is node-version: '24.x'. This mismatch makes it harder to understand what runtime CI is actually using; please update the step name or the configured node version so they agree.
      - name: Use Node.js 20.x
        uses: actions/setup-node@v6
        with:
          node-version: '24.x'

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

@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 3.1.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants