ci(nix): trigger vendorHash workflow via workflow_run#192
Merged
Conversation
The `push` trigger from PR #191 doesn't escape Dependabot's secret restrictions — GitHub applies the read-only / no-secrets policy to any event triggered directly by Dependabot, including `push`. That's why run 29481599947 on PR #188 failed with the same "Input required and not supplied: token" as before the workflow rewrite. Switch to `workflow_run` off the `Nix` build workflow. `workflow_run` runs start from the base repo on the default branch and are not classified as Dependabot-triggered, so Actions secrets (including the push-back PAT) resolve. The workflow now fires only when the `Nix` build failed on a non-main same-repo branch. `workflow_dispatch` remains for manual re-runs and takes an explicit `branch` input.
mmanciop
force-pushed
the
ci/nix-vendor-hash-workflow-run
branch
from
July 16, 2026 08:22
81e8261 to
fe9882c
Compare
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Switch the Nix vendorHash workflow from
pushtoworkflow_run, chained off theNixbuild workflow.Why
Run 29481599947 on PR #188 failed with the same
Input required and not supplied: tokenerror we thought PR #191 fixed. The GitHub docs make it explicit: any event triggered directly by Dependabot —pull_request,pull_request_target,push, etc. — gets a read-onlyGITHUB_TOKENand no access to Actions secrets.pushdid not escape that.workflow_rundoes. It fires after another workflow completes, and the follow-up run starts from the base repo on the default branch. It's not classified as Dependabot-triggered, so Actions secrets (includingREPOSITORY_FULL_ACCESS_GITHUB_TOKEN) resolve.How it works
go.mod/go.sum.Nixbuild workflow (nix.yml) runs on the PR, fails becausevendorHashis stale.workflow_runfires this workflow; job guard confirms failure + non-main + same-repo.nix/update-vendor-hash.sh, pushes the fix as a follow-up commit.Nix, which either goes green (hash was fixed) or triggers this workflow again (converges on a no-op).