Skip to content

Commit faee615

Browse files
aledbfclaude
andcommitted
ci: pass the workflow token to go-tools downloads
go-tools 2b473b1 (spin-stack/go-tools#89): with GITHUB_TOKEN or GH_TOKEN set, a GitHub release download goes through the API, where a token counts, instead of anonymously; the token goes to api.github.com and nowhere else, and an error names the host that answered. GitHub's status page on 2026-11-08 and -09 names the 504s that failed CI: increased timeouts due to a surge in anonymous users. The workflows that run the tools now set GITHUB_TOKEN to the workflow's own token at workflow level. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 83c8e6c commit faee615

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

‎.github/workflows/go-cli.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ concurrency:
3232
# request from a fork runs on GitHub's runners instead: its code never reaches spin-stack's AWS
3333
# account. Only a branch of this repository, which takes write access to push, runs on the fleet.
3434

35+
# go-tools' downloads (sfw, versions) ask GitHub with this: anonymous ones are the first it sheds
36+
# under load, and they answered 504 for minutes on 2026-11-09.
37+
env:
38+
GITHUB_TOKEN: ${{ github.token }}
39+
3540
jobs:
3641
# What a pull request changed, broken one small edit at a time (go-tools mutate): an
3742
# edit no test refuses fails, so new code arrives with tests that hold it.

‎go.mod‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ require (
1515
github.com/opencontainers/image-spec v1.1.1
1616
github.com/spf13/cobra v1.10.2
1717
github.com/spf13/pflag v1.1.0
18-
github.com/spin-stack/go-tools v0.0.0-20261026011834-5fc0868cb561
18+
github.com/spin-stack/go-tools v0.0.0-20261109064146-2b473b1bc102
1919
github.com/tailscale/hujson v0.0.0-20260727124030-b80ff77dac4f
2020
github.com/testcontainers/testcontainers-go v0.44.0
2121
go.uber.org/mock v0.6.0
@@ -168,7 +168,7 @@ require (
168168
go.opentelemetry.io/otel/sdk v1.46.0 // indirect
169169
go.opentelemetry.io/otel/sdk/metric v1.46.0 // indirect
170170
go.opentelemetry.io/otel/trace v1.46.0 // indirect
171-
go.yaml.in/yaml/v3 v3.0.5 // indirect
171+
go.yaml.in/yaml/v3 v3.0.6 // indirect
172172
golang.org/x/mod v0.42.0 // indirect
173173
golang.org/x/oauth2 v0.36.0 // indirect
174174
golang.org/x/sync v0.24.0 // indirect

‎go.sum‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ github.com/spf13/pflag v1.1.0 h1:6W6MbVUrnMb8PEhjkqwsVLY7ryuzRfFHF4mQd7L94ag=
309309
github.com/spf13/pflag v1.1.0/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
310310
github.com/spiffe/go-spiffe/v2 v2.8.1 h1:eXZMLsu+3MLEPJyGJkolqtVrteZfQdUpOWj6LTiDl/E=
311311
github.com/spiffe/go-spiffe/v2 v2.8.1/go.mod h1:47Q0Q9/AqGha8QLHp+kxpH4Wca7X7EnOtlIJy3mxZ3U=
312-
github.com/spin-stack/go-tools v0.0.0-20261026011834-5fc0868cb561 h1:g4acS+rNKMfVXLtf6QeDyiqrwPOfc+EdwiFmO0InF3Y=
313-
github.com/spin-stack/go-tools v0.0.0-20261026011834-5fc0868cb561/go.mod h1:AjnMnKNXxvNt1n0zTkHpABmBd+NnNBqdRMSwmYu885Y=
312+
github.com/spin-stack/go-tools v0.0.0-20261109064146-2b473b1bc102 h1:xoQmNO0ya9P6U1JVBPoI9Q3ltyBurMqWAORBQl6/OH0=
313+
github.com/spin-stack/go-tools v0.0.0-20261109064146-2b473b1bc102/go.mod h1:z8XsGI1fEXvJf5J5BOMkv9veB2rDkmRFs2FtSfluzVM=
314314
github.com/stretchr/objx v0.5.3 h1:jmXUvGomnU1o3W/V5h2VEradbpJDwGrzugQQvL0POH4=
315315
github.com/stretchr/objx v0.5.3/go.mod h1:rDQraq+vQZU7Fde9LOZLr8Tax6zZvy4kuNKF+QYS+U0=
316316
github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE=
@@ -364,8 +364,8 @@ go.opentelemetry.io/otel/trace v1.46.0/go.mod h1:J7GAXweO77XSFkB/rmAqk9D6ihszhFj
364364
go.uber.org/mock v0.6.0 h1:hyF9dfmbgIX5EfOdasqLsWD6xqpNZlXblLB/Dbnwv3Y=
365365
go.uber.org/mock v0.6.0/go.mod h1:KiVJ4BqZJaMj4svdfmHM0AUx4NJYO8ZNpPnZn1Z+BBU=
366366
go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
367-
go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw=
368-
go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg=
367+
go.yaml.in/yaml/v3 v3.0.6 h1:zcDfvjXEqTQmpjniUBLc91xYJMB2c4QOFxEF/LCEckM=
368+
go.yaml.in/yaml/v3 v3.0.6/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg=
369369
golang.org/x/crypto v0.58.0 h1:COkYLr4k7nDI4r6QtMML2AfzeIswWHAJthLS6K/M/54=
370370
golang.org/x/crypto v0.58.0/go.mod h1:Xh+kl5A+M0gMiWDytH2Hhr5Z7WbNCpv/eB/EFgfSk+w=
371371
golang.org/x/exp v0.0.0-20260718201538-764159d718ef h1:LkZ48HFgy/TvhTI0bcWkjgFkgLyKUwcTbDjS0DUjw+A=

0 commit comments

Comments
 (0)