From e29723d0f359afb7b3cbf4001ff16a59a044e368 Mon Sep 17 00:00:00 2001 From: William Martin Date: Sat, 5 Jul 2025 12:07:53 +0200 Subject: [PATCH 1/2] Inject token into bump-go workflow --- .github/workflows/bump-go.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/bump-go.yml b/.github/workflows/bump-go.yml index 62079a350..047be2947 100644 --- a/.github/workflows/bump-go.yml +++ b/.github/workflows/bump-go.yml @@ -18,5 +18,6 @@ jobs: GIT_AUTHOR_NAME: cli automation GIT_COMMITTER_EMAIL: noreply@github.com GIT_AUTHOR_EMAIL: noreply@github.com + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | bash .github/workflows/scripts/bump-go.sh --apply go.mod From 00cb1efe83564c6c9f77210d0d772398e3486de5 Mon Sep 17 00:00:00 2001 From: William Martin Date: Sat, 5 Jul 2025 13:15:25 +0200 Subject: [PATCH 2/2] Ensure go mod tidy is run in bump-go This is because go mod tidy seems to add minor version to the go mod directive when it is missing. --- .github/workflows/scripts/bump-go.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/scripts/bump-go.sh b/.github/workflows/scripts/bump-go.sh index 74f5b3cbe..812b90417 100755 --- a/.github/workflows/scripts/bump-go.sh +++ b/.github/workflows/scripts/bump-go.sh @@ -76,6 +76,9 @@ if [[ "$CURRENT_TOOLCHAIN_DIRECTIVE" != "go$TOOLCHAIN_VERSION" ]]; then echo " • toolchain $CURRENT_TOOLCHAIN_DIRECTIVE → go$TOOLCHAIN_VERSION" fi +# ---- Run go mod tidy to ensure .0 minor version is added to go directive ---- +go mod tidy + rm -f "$GO_MOD.bak" git add "$GO_MOD"