-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
@actions/github 2.1.0 breaks auth check #324
Labels
bug
Something isn't working
Comments
tianhaoz95
changed the title
Github 2.1.0 breaks auth check
@actions/github 2.1.0 breaks auth check
Jan 27, 2020
nvm, it's a global init error. |
What does this mean "it's a global init error"? This is the only Google result for "Parameter token or opts.auth is required". |
@thejohnfreeman |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
new github.GitHub(token);
breaks when upgrade@actions/github
from2.0.1
to2.1.0
with error messageParameter token or opts.auth is required
and trace:for details see this action run: https://github.com/tianhaoz95/readable-readme/pull/307/checks?check_run_id=411469798#step:4:97
To Reproduce
Steps to reproduce the behavior:
@actions/github
at version2.0.1
, construct a octokit object2.1.0
Expected behavior
It should construct the octokit with token given.
Additional context
In the code we can see that 9 days ago this was added:
toolkit/packages/github/src/github.ts
Line 37 in 432a78c
If the octokit is complaining about auth, then it makes me think that there is a check for auth between the construction of the
github
object andoctokit
.The text was updated successfully, but these errors were encountered: