From aa2dd907772f9ad874bf369cedfb384b9c662e9e Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Wed, 18 Nov 2026 16:54:07 -0300 Subject: [PATCH 1/2] versions: refresh opens its pull request as GH_TOKEN first, and says it in the run's summary refresh read GITHUB_TOKEN before GH_TOKEN. A workflow sets GITHUB_TOKEN to the run's own token - read-only in spin-machine's refresh.yml - and hands the app that is to start the checks as GH_TOKEN, so the pull request would have been opened as the run, or refused. gh reads them the other way round; so does refresh now. The scripts it replaces added the pull request's link to the run's summary; refresh does too, so it is found without opening the step's log. Co-Authored-By: Claude Opus 5.5 --- cmd/versions/main.go | 2 +- cmd/versions/refresh.go | 35 ++++++++++++++++++++++--------- cmd/versions/refresh_test.go | 12 ++++++++++- site/src/content/docs/versions.md | 4 +++- 4 files changed, 40 insertions(+), 13 deletions(-) diff --git a/cmd/versions/main.go b/cmd/versions/main.go index 3f0bb16..1f1ed84 100644 --- a/cmd/versions/main.go +++ b/cmd/versions/main.go @@ -54,7 +54,7 @@ Usage: every entry tracked with it at the same versions refresh ... bump each to its newest, a commit each, and say what moved; -propose pushes them as refresh/