Commit Graph
3 Commits
Author SHA1 Message Date
Zakk 8900587f7b .github: narrow token scopes and fix silent CI failures
Jobs inherited write scopes they never use, so each workflow now
defaults to contents: read and grants pull-requests: read or
packages: write only to the jobs whose GITHUB_TOKEN calls need them.
The autobump bump job keeps its own block.

Failures that read as success now fail the step: a failed gh call in
nvchecker-check.py no longer reads as "no issue" and opens a duplicate,
and fleet-keeper no longer reports "found 0" when listing repositories
or workflows fails.

emerge-targets.sh took =cat/foo-bar-1.0 for a version of cat/foo, so a
PR touching both dropped cat/foo; only a digit after the dash starts a
version.

setup-gentoo added the x86-64 binhost on arm64 as well; it is now
added on amd64 only.

mirror-to-codeberg trusted whatever ssh-keyscan returned while holding
a write key; the host key is now pinned and checked.

stage3 cleanup ran even when build was skipped on a fork schedule.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-11 04:26:16 +11:00
Zakk 33c52c86a9 .github: let autobump take the newest kept environment image
daily now builds the image every day. A bump run that finds no image for
today, because daily failed or the run started after 00:00 UTC before
daily, built its own, which took ten minutes and repeated what daily
does. Take the newest image of the last three days instead, and build
only when none is kept or rebuild_env asks for it.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-11 03:27:38 +11:00
Zakk 45a903afc7 .github: start the daily bump round from one workflow
stage3, nvchecker and autobump each had a schedule of their own, and
GitHub starts each 5-8 hours late, so their order shifted from day to
day. daily.yml is now the only schedule: it calls stage3, then
autobump-env on the fresh stage3, and nvchecker in parallel; autobump
runs when daily completes and autobump-wait after it, as before.

The steps are reusable workflows rather than a workflow_run chain,
because workflow_run stops after three levels and autobump-wait would
already be the fourth.

- daily runs at 00:17 UTC, so autobump-env carries the date the bumps
  run on and autobump starts without building its image.
- autobump drops its 11:00 schedule: autobump-wait already dispatches
  it again once the missing bundles are ready.
- stage3, autobump-env and nvchecker keep workflow_dispatch; nvchecker
  run by hand still starts autobump.

Codeberg mirroring no longer runs on every branch deletion: merged
autobump branches queued dozens of runs a day, and the next push or the
daily run prunes them anyway.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-11 03:27:38 +11:00