Skip to content

ci: remove environment from release job to fix OIDC trust policy mismatch#39

Merged
SamuelSSalazar merged 1 commit intomasterfrom
ci/remove-env-from-release-workflow
Mar 16, 2026
Merged

ci: remove environment from release job to fix OIDC trust policy mismatch#39
SamuelSSalazar merged 1 commit intomasterfrom
ci/remove-env-from-release-workflow

Conversation

@SamuelSSalazar
Copy link
Copy Markdown
Contributor

@SamuelSSalazar SamuelSSalazar commented Mar 16, 2026

By submitting a PR to this repository, I agree to the terms within the Auth0 Code of Conduct.

Description

Removed environment: release from the release workflow. All secrets used in this workflow are defined at the org level, no secrets are scoped to the environment.

Why?

The release workflow is failing with Not authorized to perform sts:AssumeRoleWithWebIdentity.

When a GitHub Actions job specifies an environment, the OIDC token's sub claim changes from repo:auth0/node-wsfed:ref:refs/heads/master to repo:auth0/node-wsfed:environment:release. The IAM trust policy was configured with the ref-based claim, causing the mismatch.

"The subject claim includes the environment name when the job references an environment."
-- https://docs.github.com/en/actions/reference/security/oidc#filtering-for-a-specific-environment

Checklist

  • I have added documentation for new/changed functionality in this PR or in auth0.com/docs
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not the default branch

@SamuelSSalazar SamuelSSalazar marked this pull request as ready for review March 16, 2026 15:07
@SamuelSSalazar SamuelSSalazar requested a review from a team as a code owner March 16, 2026 15:07
@SamuelSSalazar SamuelSSalazar merged commit 54c9611 into master Mar 16, 2026
5 checks passed
@SamuelSSalazar SamuelSSalazar deleted the ci/remove-env-from-release-workflow branch March 16, 2026 16:34
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 7.0.2 🎉

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.

2 participants