-
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
Using GitHub with GITHUB_TOKEN without Prefix leaks token #233
Comments
I'm not sure what you mean by "without prefix"? Have you validated that the thing that you're seeing is the GITHUB_TOKEN? The message that you're posting looks like an error message from the GitHub API that's including the issue's node_id. |
@ethomson I mean I'm just passing If I want to use the GITHUB_TOKEN for REST Calls directly, I would need to add it as the header I'm pretty sure: If I use a personal access token, put it into the Secrets of the Repo where the action is running it works without a problem. |
Hey @rowi1de , Are all of the api's failing for you? Or is only a single api failing? If you are seeing this as a result of your comment here You may want to start a discussion in the GitHub community forums for the api, this doesn't appear to be a toolkit issue. It appears to be an issue with that api. |
Hey @thboop you are right, I was on the wrong path when creating the issue. Thanks! |
Full source https://github.com/rowi1de/auto-assign-review-teams/blob/master/src/main.ts
will leak the token on error:
19-11-22T16:44:34.9046342Z (node:2404) UnhandledPromiseRejectionWarning: HttpError: Validation Failed: "Could not resolve to a node with the global id of 'M....c='." 2019-11-22T16:44:34.9047036Z at /home/runner/work/_actions/rowi1de/typescript-action/master/node_modules/@octokit/request/dist-node/index.js:66:23 2019-11-22T16:44:34.9047273Z at processTicksAndRejections (internal/process/task_queues.js:89:5) 201
see actions/typescript-action#40
The text was updated successfully, but these errors were encountered: