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 gh in an workflow seems to require setting GH_TOKEN #21930
Comments
|
Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines. |
|
Part of the error message shown in the GitHub workflow log when omitting the |
|
@cmwilson21 - this requires review by a SME so I've added the relevant label |
|
Thanks for opening an issue! We've triaged this issue for technical review by a subject matter expert |
|
Thank you @mkutz for raising this with us, and @stefanscheidt for confirming the docs are currently incorrect For information, the Dependabot team mentioned this article: https://docs.github.com/en/actions/security-guides/automatic-token-authentication |
|
This issue is reserved for the MLH Fellowship program. |
|
A stale label has been added to this issue becuase it has been open for 60 days with no activity. To keep this issue open, add a comment within 3 days. |
`GH_TOKEN` is necessary when using the `gh` CLI. We use this in `images-branch.yml` when doing some stuff around forks, but not here in `images-latest.yml`. I considered leaving it for consistency, and in case we ever add back `gh`. But the consistency arg doesn't make sense since `images-updater-core.yml` doesn't have this. And if we add back `gh`, we'll get an obvious error message about the problem per github/docs#21930 (comment).
`GH_TOKEN` is necessary when using the `gh` CLI. We use this in `images-branch.yml` when doing some stuff around forks, but not here in `images-latest.yml`. I considered leaving it for consistency, and in case we ever add back `gh`. But the consistency arg doesn't make sense since `images-updater-core.yml` doesn't have this. And if we add back `gh`, we'll get an obvious error message about the problem per github/docs#21930 (comment).
`GH_TOKEN` is necessary when using the `gh` CLI. We use this in `images-branch.yml` when doing some stuff around forks, but not here in `images-latest.yml`. I considered leaving it for consistency, and in case we ever add back `gh`. But the consistency arg doesn't make sense since `images-updater-core.yml` doesn't have this. And if we add back `gh`, we'll get an obvious error message about the problem per github/docs#21930 (comment).
[maintainer edit]
This issue is reserved for the MLH Fellowship program.
Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions
What part(s) of the article would you like to see updated?
When I try the suggested workflows I get an error as
ghseems to need theGITHUB_TOKENto be set asGH_TOKEN.The following works:
Additional information
The repo in question is private and within an organization.
The text was updated successfully, but these errors were encountered: