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

Pass GitLab token from env to inflator param #3665

Merged
merged 1 commit into from
Sep 13, 2022

Conversation

HebaruSan
Copy link
Member

@HebaruSan HebaruSan commented Sep 11, 2022

Motivation

In #3661 we added the ability to index mods hosted on GitLab. This included the ability to provide a GitLab authentication token from the command line, but the Inflator isn't using this capability yet. We should add that eventually for completeness, see #3661 (comment).

Changes

Now the $GL_Token environment variable is passed to the inflator's --gitlab-token parameter.
KSP-CKAN/NetKAN-Infra#276 will handle providing this env var based on the configured secrets.

I tested netkan.exe --gitlab-token '' and it still worked, so I think there is no harm in setting this parameter before we create a GitLab token.

@HebaruSan HebaruSan added Enhancement New features or functionality Easy This is easy to fix Pull request Netkan Issues affecting the netkan data Infrastructure Issues affecting everything around CKAN (the GitHub repos, build process, CI, ...) labels Sep 11, 2022
Copy link
Member

@techman83 techman83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉

@techman83 techman83 merged commit 7e2636f into KSP-CKAN:master Sep 13, 2022
@HebaruSan HebaruSan deleted the feature/inflator-gitlab-token branch September 13, 2022 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Easy This is easy to fix Enhancement New features or functionality Infrastructure Issues affecting everything around CKAN (the GitHub repos, build process, CI, ...) Netkan Issues affecting the netkan data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants