Description
Description:
I would like to request a mechanism to allow the use of an internal mirror (e.g., corporate network storage) for Go installations instead of directly downloading them from GitHub.
A potential way could look like:
setup-go:
location: http://internal/manifest.yml
Where manifest.yml specifies the locations of the required Go versions.
Justification:
In corporate environments, build systems typically do not have direct internet access to minimize security risks. Instead, all external dependencies are accessed through an internal mirror or proxy. Supporting this feature would enable compliance with security policies while ensuring reliable and controlled access to Go installations.
Let me know if further details are needed.
Are you willing to submit a PR?
Yes
As far as I can see the URL is currently hard-coded to go-versions manifst in https://github.com/actions/setup-go/blob/main/src/installer.ts#L14
If this URL can be overriden by paramter , would that work ?
Or perhaps similar to googl storage url , but passed by end user: https://github.com/actions/setup-go/blob/main/src/installer.ts#L131