elgohr / Github-Release-Action

Publish Github releases in an action
MIT License
179 stars 57 forks source link

github.com username: github.com password for (never stored): #37

Open MarkEnverus opened 2 years ago

MarkEnverus commented 2 years ago

I'm using SSO with a self created GITHUB API token and when I run a release I get the following error? (Github.com)

elgohr commented 2 years ago

Hi, which error? In general please have a look at https://docs.github.com/en/enterprise-cloud@latest/authentication/authenticating-with-saml-single-sign-on/authorizing-a-personal-access-token-for-use-with-saml-single-sign-on

MarkEnverus commented 2 years ago

Yes – that’s all setup as directed there – yet it still seems to be an issue – maybe it’s a SSO only issue if nobody else is having issues

elgohr commented 2 years ago

Please provide the error

MarkEnverus commented 2 years ago

apologies: Not Found github.com username: github.com password for (never stored): Error: Process completed with exit code 1.

elgohr commented 2 years ago

I guess your username is not „github.com“

MarkEnverus commented 2 years ago

agreed - but the only ENV variable is a API TOKEN i don't see a way to put a username/password?

elgohr commented 2 years ago

Looks like this is the blocker https://github.com/github/hub/issues/826#issuecomment-76309178

Riduidel commented 1 year ago

I can reproduce the issue with a non-SSO account on a public project https://github.com/Riduidel/rrss2imap/actions/runs/5235807013/jobs/9452907263

Github action is https://github.com/Riduidel/rrss2imap/blob/master/.github/workflows/on_tag.yml

elgohr commented 1 year ago

@Riduidel are you sure that secrets.RELEASE_TOKEN is present and has the correct permissions?

Riduidel commented 1 year ago

@elgohr My release token has all the repository permissions but no other. Does it need any other permission?

elgohr commented 1 year ago

@Riduidel sorry, I can't reproduce this. The integration test is running fine (https://github.com/elgohr/Github-Release-Action/blob/main/.github/workflows/release.yml - https://github.com/elgohr/Github-Release-Action/actions/runs/5381849785/jobs/9766449798). RELEASE_TOKEN has the following scopes image