Skip to content

ci(deploy): update to oidc tokens#1239

Merged
Garbee merged 2 commits into
developfrom
garbee/oidc
Oct 24, 2025
Merged

ci(deploy): update to oidc tokens#1239
Garbee merged 2 commits into
developfrom
garbee/oidc

Conversation

@Garbee
Copy link
Copy Markdown
Member

@Garbee Garbee commented Oct 24, 2025

This patch removes the use of the old npm token secret to deploy. Replacing it with the requirements to deploy using OIDC tokens. The NPM update is guarded so it only runs when under 11, so future updates beyond 11 in Node aren't accidentally downgraded if we forget to update this in a timely manner.

While here, increased security/stability by pinning the hash to the two external workflows in use.

Fixes: #1238

@Garbee Garbee self-assigned this Oct 24, 2025
Copilot AI review requested due to automatic review settings October 24, 2025 17:11
@Garbee Garbee requested a review from a team as a code owner October 24, 2025 17:11
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

This PR migrates the deployment workflow from using npm token secrets to OIDC tokens for enhanced security. It also adds conditional npm version upgrades to ensure npm 11 is available when needed, and pins external action versions using commit hashes for better security and reproducibility.

  • Replaced npm token authentication with OIDC-based authentication
  • Added conditional npm 11 upgrade logic to prevent version downgrade
  • Pinned action versions using commit hashes

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

Comment thread .github/workflows/deploy.yml Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Garbee Garbee merged commit be108d2 into develop Oct 24, 2025
30 checks passed
@Garbee Garbee deleted the garbee/oidc branch October 24, 2025 23:04
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.

Update deployment workflow to use OIDC

3 participants