Skip to content

storage.googleapis.com/golang no longer allows anonymous access causing 403 on Golang download fallback #664

@nicholasngai

Description

@nicholasngai

Description:
actions/setup-go falls back to downloading from storage.googleapis.com/golang when the download from golang-versions does not succeed.

Anonymous access to this bucket is no longer allowed, causing 403s:

https://storage.googleapis.com/golang/go1.25.3.linux-amd64.tar.gz

Image

Action version:
actions/setup-go@v4

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
N/A

Repro steps:

  1. Hit the rate limit to go-versions. Fall back to downloading from storage.googleapis.com/golang.
  2. Receive 403

Expected behavior:
The fallback to download from Go directly should work.

Actual behavior:

API rate limit exceeded for <ip>. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
Falling back to download directly from Go
Install from dist
Acquiring go1.25.3 from https://storage.googleapis.com/golang/go1.25.3.linux-amd64.tar.gz
Error: Failed to download version ^1.20.0: Error: Unexpected HTTP response: 403

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions