Skip to content
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

Get the variables from gitlab project variables #1206

Open
ecourreges-orange opened this issue May 6, 2024 · 2 comments
Open

Get the variables from gitlab project variables #1206

ecourreges-orange opened this issue May 6, 2024 · 2 comments
Labels
feature Feature missing according to gitlab ci standard

Comments

@ecourreges-orange
Copy link

Is your feature request related to a problem? Please describe.
I would like an option for this tool to automatically get and use variables from the gitlab server project and/or group level variables.
I am first interested by project level variables: https://docs.gitlab.com/ee/api/project_level_variables.html

Describe the solution you'd like
I would like a CLI option like --project-id my_id and/or a project-id setting in one of the dot files, so that I can commit this file safely, and automatically get the variables filled from a call to gitlab API, whose URL can be guessed from the git remote and the project ID.

Describe alternatives you've considered
I have to manually create a file in my repo at first use or use --variable every time which is cumbersome

@firecow firecow added the feature Feature missing according to gitlab ci standard label May 6, 2024
@firecow
Copy link
Owner

firecow commented May 6, 2024

I'm most likely not going to work on this. We only use project CI/CD variables for holding secrets, that we do not want our developers to get their hands on.

I see the purpose of this feature though.

@ecourreges-orange ecourreges-orange closed this as not planned Won't fix, can't repro, duplicate, stale May 7, 2024
@firecow
Copy link
Owner

firecow commented May 8, 2024

@ecourreges-orange Keep it open, thats ok. Maybe some other contributor will implement it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature missing according to gitlab ci standard
Projects
None yet
Development

No branches or pull requests

2 participants