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

Add support for non-interactive inputs for uffizzi connect ghcr #125

Open
gadkins opened this issue Jul 19, 2022 · 3 comments · Fixed by #128
Open

Add support for non-interactive inputs for uffizzi connect ghcr #125

gadkins opened this issue Jul 19, 2022 · 3 comments · Fixed by #128
Assignees
Labels
priority 1 Urgent issue

Comments

@gadkins
Copy link
Member

gadkins commented Jul 19, 2022

Similar to #95, we need to accept inputs non-interactively, using --flags and environment variables.

@gadkins gadkins added the priority 1 Urgent issue label Jul 20, 2022
antlu added a commit that referenced this issue Jul 20, 2022
@antlu
Copy link
Contributor

antlu commented Jul 20, 2022

You can provide the credentials like this:

With options

uffizzi connect ghcr --username name --token ghp_ASD9sd72

-u and -t are also available.

With environment variables

export GITHUB_USERNAME=name
export GITHUB_ACCESS_TOKEN=ghp_ASD9sd72
uffizzi connect ghcr

@NealArw
Copy link

NealArw commented Jul 20, 2022

TESTED - OK

bash-5.1# bundle exec uffizzi connect ghcr
Github Username: Name
Access Token:
Successfully connected to GHCR

bash-5.1# bundle exec uffizzi connect ghcr --username Name --token ghp_
Successfully connected to GHCR


bash-5.1# bundle exec uffizzi connect ghcr -u Name -t ghp_
Successfully connected to GHCR

bash-5.1# bundle exec uffizzi connect ghcr
Successfully connected to GHCR

@NealArw
Copy link

NealArw commented Jul 20, 2022

TESTED on prod - OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority 1 Urgent issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants