Auto-update flake.nix vendorHash on Renovate PRs - #405
Merged
Merged
Conversation
Add a workflow that runs nix-update on Renovate PRs touching go.mod or go.sum, commits the recomputed vendorHash, and re-dispatches nix-checks via workflow_dispatch (an exception to GitHub Actions anti-recursion).
Renovate also touches bindings/go/scip, reprolang, and bindings/typescript, each of which has its own vendorHash/npmDepsHash in checks.nix. Watch the relevant paths and loop nix-update over the full attribute path for every affected derivation (sequentially, to avoid concurrent file writes).
trly
approved these changes
May 11, 2026
Push corrective commits using a GitHub App token instead of GITHUB_TOKEN + workflow_dispatch. The non-GITHUB_TOKEN identity makes the push fire pull_request synchronize naturally, producing a check_suite the PR UI displays. Also widen scope from Renovate-only branches to any same-repo PR, and drop the workflow_dispatch trigger from nix-checks.yaml that the previous strategy required. Add a concurrency block to nix-checks.yaml so superseded runs are cancelled when the auto-fix push triggers a fresh run.
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.
Similar to scip-code/scip-go#250