ci: fix update-flake-lock workflow (app token + update-flake-lock action)#2281
Open
brainrake wants to merge 2 commits into
Open
ci: fix update-flake-lock workflow (app token + update-flake-lock action)#2281brainrake wants to merge 2 commits into
brainrake wants to merge 2 commits into
Conversation
checkout@v6 persists credentials that collide with the auth header set by create-pull-request, producing a duplicate Authorization header and a HTTP 400 on push. Disable credential persistence since create-pull-request supplies its own token. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Collaborator
Author
Switch to DeterminateSystems/update-flake-lock for better ergonomics and authenticate via actions/create-github-app-token. A GitHub App token is required because the org disables "Allow GitHub Actions to create and approve pull requests", so GITHUB_TOKEN cannot open the PR. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
The
update-flake-lockworkflow has failed on every run. Two issues:Authorizationheader → HTTP 400.actions/checkout@v6persists a credential auth header that collides with the one the PR-creation step sets.GitHub Actions is not permitted to create or approve pull requests. The org disables that policy, soGITHUB_TOKENcan't open the PR regardless of workflowpermissions.Fix
DeterminateSystems/update-flake-lockfor better ergonomics (handles thenix flake update+ PR in one step).actions/create-github-app-token, which is not subject to the org policy. This also means PRs trigger CI (unlikeGITHUB_TOKEN-created PRs).Requires (before merge)
A Supabase-owned GitHub App with Contents: R/W and Pull requests: R/W, installed on this repo, plus repo secrets:
UPDATE_APP_IDUPDATE_APP_PRIVATE_KEY🤖 Generated with Claude Code