Skip to content

How to solve 401 authorization error when trying to publish package from gradle #26401

Answered by hansi-b
hansi-b asked this question in Actions
Discussion options

You must be logged in to vote

It seems there are 1001 possible reasons for this error. In my case, it was wrongly quoted credentials in my gradle.properties. The properties should a) not be quoted, and b) should quote special chars.
So, instead of
GITHUB_ACTOR='hansi-b'
it has to read
GITHUB_ACTOR=hansi\-b

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Packages Host your dependencies, libraries, and production-ready code, right from your repository Product Feedback
1 participant