ci: run Dependabot auto-merge in the release environment#1289
Merged
Conversation
RELEASE_APP_ID and RELEASE_APP_PRIVATE_KEY are scoped to the release environment, so the auto-merge job must declare it to resolve the app credentials (the placeholder `dependabot` environment left app-id empty).
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes the Dependabot auto-merge workflow by running the auto-merge job in the release GitHub Actions environment so it can access environment-scoped credentials (vars.RELEASE_APP_ID and secrets.RELEASE_APP_PRIVATE_KEY) needed to mint the GitHub App token used for enabling auto-merge.
Changes:
- Switch the Dependabot auto-merge job environment from a placeholder (
dependabot) to the real credentials-bearing environment (release).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #1288.
RELEASE_APP_ID(variable) andRELEASE_APP_PRIVATE_KEY(secret) are scoped to thereleaseenvironment. The auto-merge job declared a placeholderdependabotenvironment, sovars.RELEASE_APP_IDresolved empty andcreate-github-app-tokenfailed with "The 'client-id' (or deprecated 'app-id') input must be set to a non-empty string". Point the job atrelease(no protection rules, so auto-merge stays unattended) to reach the credentials, which also satisfies zizmorsecrets-outside-env.