-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Replace github.token
by secrets.GITHUB_TOKEN
#20228
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
Replace github.token
by secrets.GITHUB_TOKEN
#20228
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain the security advantage here? I read the docs and don't see any.
Similarly, please remove all the stylistic changes here.
b2fcb85
to
deeb3c6
Compare
I have reverted the style changes, sorry about that. About the security advantage I am also kinda unsure tbh. For me the docs sound like that they encourage you to use the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dev-cmd/tap-new.rb
uses github.token
too so may as well update that as well if the goal is consistency
Can you provide a link to the file? I don't find it my repository 😅 Or at least no file which should have |
deeb3c6
to
b7b3692
Compare
They are identical: https://docs.github.com/en/actions/reference/contexts-reference#github-context ("This is functionally equivalent to the The only difference is that Doesn't however really matter for these specific cases in this PR. |
No, please look harder. That's not the full path but a wide variety of tools can do this for you. |
Yup! Seem to be now, thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Use the
secrets.GITHUB_TOKEN
instead ofgithub.token
which is kinda pointed out here: https://docs.github.com/en/actions/how-tos/security-for-github-actions/security-guides/use-github_token-in-workflows