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

Could not use plugin if GITHUB_TOKEN defined in global env #48

Open
Demonian opened this issue Apr 9, 2022 · 1 comment
Open

Could not use plugin if GITHUB_TOKEN defined in global env #48

Demonian opened this issue Apr 9, 2022 · 1 comment

Comments

@Demonian
Copy link

Demonian commented Apr 9, 2022

I believe it is pretty standard case when GITHUB_TOKEN will be defined globally for all steps, but currently this plugin will fail in such cases with this error:

Error: Error: [@octokit/auth-action] `GITHUB_TOKEN` variable is set on both `env:` and `with:`. Use either the one or the other. See https://github.com/octokit/auth-action.js#createactionauth

It seems that making `GITHUB_TOKEN optional input parameter to fix the issue

Regards

@thisismydesign
Copy link
Member

@Demonian Thanks for the issue. If you can open a PR I'm happy to accept it

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

No branches or pull requests

2 participants