Skip to content

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

@ExplodingSalad

Description

@ExplodingSalad

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions