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

[QUESTION] How to use oc-login with username and password? #38

Open
ExplodingSalad opened this issue May 19, 2024 · 0 comments
Open

[QUESTION] How to use oc-login with username and password? #38

ExplodingSalad opened this issue May 19, 2024 · 0 comments
Labels
question Further information is requested

Comments

@ExplodingSalad
Copy link

ExplodingSalad commented May 19, 2024

Question

I followed the guide and added my openshift username and password as secrets in github. Now, when i run the oc-login action it throws an error claiming

Login failed (401 Unauthorized)
Verify you have provided the correct credentials.

Strangely, using the oc login -p "mypassword" -u "myusername" also throws the same error. I can however log in successfully via the web UI.

I am using Openshift Sandbox, hence I cannot switch to a service account.

Any ideas?

Edit: logging in via the command line works by omitting the password, but how do you omit the password for the action? it is not possible to my knowledge

@ExplodingSalad ExplodingSalad added the question Further information is requested label May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant