Skip to content

Passing custom go-versions manifest or location #564

@antoniivanov

Description

@antoniivanov

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

Metadata

Metadata

Assignees

Labels

feature requestNew feature or request to improve the current logic

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions