beads/.github/workflows
Harry Miller 9ca6b51b47
ci(nix): auto-update default.nix vendorHash on dependabot Go bumps (#3804)
* chore: track workflow formulas for portability

Force-add gh-issue-to-pr and gh-pr-review formulas so they can be
cloned to new machines. These live in .beads/formulas/ which is
normally gitignored, but formulas are code (not database state).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* chore: untrack workflow formulas

Remove gh-issue-to-pr and gh-pr-review formulas from git tracking.
These are already covered by .gitignore (.beads/) and shouldn't be
sent upstream.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* ci(nix): auto-update vendorHash for dependabot Go bumps (beads-bz5)

Dependabot Go-module bumps consistently fail the `nix build .#default`
CI gate because default.nix has a hardcoded vendorHash that any
go.mod/go.sum change invalidates. PRs sit stuck for days (#3468, #3637,
#3638 currently affected) until a maintainer manually computes the new
hash. This workflow detects the drift, runs the existing
scripts/update-nix-vendorhash.sh, and pushes the hash bump back to the
dependabot branch.

Uses pull_request_target because GITHUB_TOKEN is read-only on
pull_request workflows triggered by dependabot. Safety guards: only
runs when actor and PR user are both dependabot[bot] AND the PR head
is on the upstream repo (dependabot never opens PRs from forks).

Caveat documented in CONTRIBUTING.md: GitHub does not retrigger
pull_request workflows on GITHUB_TOKEN-authored commits, so a
maintainer may need to re-run nix-build once after the auto-fix push.
The workflow's own success serves as the green signal that the hash
is correct.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-21 15:36:16 -07:00
..
ci.yml /.github/workflows/ci.yml: run tests in CI 2026-05-19 16:09:43 -07:00
cross-version-smoke.yml chore(deps): bump actions/setup-go from 5.6.0 to 6.4.0 (#3636) 2026-05-05 14:33:42 -07:00
deploy-docs.yml ci(docs): add --fallback-extensions html to lychee link check (#3736) 2026-05-05 20:17:54 -07:00
migration-test.yml chore: harden release and dependency security 2026-04-28 08:45:22 +00:00
nightly.yml chore: harden release and dependency security 2026-04-28 08:45:22 +00:00
nix-build.yml chore(deps): bump DeterminateSystems/determinate-nix-action (#3635) 2026-05-05 14:32:58 -07:00
regression.yml /{docs,.github,internal,scripts}: dolt 1.88.1 2026-05-14 16:56:55 -07:00
release.yml chore: harden release and dependency security 2026-04-28 08:45:22 +00:00
test-pypi.yml chore: harden release and dependency security 2026-04-28 08:45:22 +00:00
update-flake-lock.yml fix(ci): use app token for flake lock PRs 2026-05-17 01:41:16 +00:00
update-vendor-hash.yml ci(nix): auto-update default.nix vendorHash on dependabot Go bumps (#3804) 2026-05-21 15:36:16 -07:00