Skip to content

Passing custom go-versions manifest or location #564

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
antoniivanov opened this issue Mar 7, 2025 · 1 comment
Open

Passing custom go-versions manifest or location #564

antoniivanov opened this issue Mar 7, 2025 · 1 comment
Labels
feature request New feature or request to improve the current logic

Comments

@antoniivanov
Copy link

antoniivanov commented Mar 7, 2025

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

@antoniivanov antoniivanov added feature request New feature or request to improve the current logic needs triage labels Mar 7, 2025
@antoniivanov antoniivanov changed the title Support passing custom go-versions manifest or location Passing custom go-versions manifest or location Mar 7, 2025
@mahabaleshwars
Copy link

Hi @antoniivanov,
Thank you for creating this feature request. We will investigate it and provide feedback as soon as we have some updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request to improve the current logic
Projects
None yet
Development

No branches or pull requests

2 participants