Repository navigation
ci: repair the vendorHash Dependabot bumps leave stale - #41
Merged
Merged
Conversation
Dependabot's Go module bumps change go.sum without the vendorHash in flake.nix, so nix build fails on the pull request. A hash job in CI runs nixos-contrib/nix-update-hash on those pull requests and pushes the corrected hash with the App token; the CI run that push triggers cancels the stale one through the existing concurrency group. Pinned to @main until the action's first release.
iamralch
force-pushed
the
ci/nix-update-hash
branch
from
October 5, 2026 07:08
74f1be7 to
b0adbac
Compare
iamralch
enabled auto-merge (squash)
October 5, 2026 09:04
Contributor
Code Metrics Report
Reported by octocov |
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.
Summary
Dependabot's Go module bumps change
go.sumbut not thevendorHashinflake.nix, sonix buildfails on the pull request.This adds a
hashjob toci.yml. It runs only ondependabot/go_modules/…branches, uses nixos-contrib/nix-update-hash to write the correct hash, and pushes it with the App token. That push starts a new CI run, which cancels the stale run through the existingconcurrencygroup. The new run'stestandbuildthen pass on the fixed commit. On every other PR and push, the job is skipped.It's pinned to
@mainfor the trial; it moves to@v1once the first real bump has been fixed.Prerequisites
APP_CLIENT_IDandAPP_PRIVATE_KEYare set as org-level Dependabot secrets ✅buildcheck:mainhas no branch protection, somerge.ymlmerges a labelled Dependabot PR without waiting for CI. A ruleset that requires the build check makes the PR wait for the fixed hash.Test plan
actionlintreports no new findings forci.yml. The only output is the known false positive forcreate-github-app-token@v3'sclient-id, which actionlint 1.7.12 doesn't know about.32aaff8it wrote the samevendorHashas the manual fix in chore(nix): update vendorHash for the gomega bump protoc-contrib/protoc-gen-go-aip#49.