We recently starting seeing this error show up when using actions/setup-go@v4:
Falling back to download directly from Go
Install from dist
Acquiring go1.24.9 from https://storage.googleapis.com/golang/go1.24.9.linux-amd64.tar.gz
Error: Failed to download version 1.24: Error: Unexpected HTTP response: 403
This appears to be due to the fact that anonymous access to this GCS bucket has been revoked:
We know that the root cause of this issue is actions/setup-go, not Golang. We have already filed actions/setup-go#664 and several PRs (actions/setup-go#665 actions/setup-go#666 actions/setup-go#667 actions/setup-go#668) against the same repo to point to the new CDN URL that is now used to serve Golang binaries.
Sadly, they have been slow to respond to/address the issue and we are seeing widespread failures in our GHAs using Golang as a result. We aren’t asking for anonymous access to be permanently restored, but is it possible to temporarily restore access at least until actions/setup-go updates the URLs that it is pointing to to download the Go binary?