Open
Description
Code of Conduct
- I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
There are multiple parts of the documentation which say that Dependabot workflow runs act as if they are from a forked repository and therefore have limited privileges.
However, the documentation seems to be incomplete / contradicting:
- Some parts say that the token is read-only and there is no access to secrets
- Some mention that the permissions can be increased, and secrets can be made accessible (but without
linking to the relevant documentation)- https://github.com/github/docs/blame/e2f952a115fc4cb3d34281b1fa472ac3cd33e7da/content/code-security/dependabot/troubleshooting-dependabot/troubleshooting-dependabot-on-github-actions.md#L26-L31
(it is actually explained further down in the same document, but maybe it would be useful to directly link there?)
- GitHub enterprise has dedicated section which suggests changing configs
(is this really needed or does the github.com approach work for enterprises as well and should be preferred because it is safer?)
The only sections which actually provide detailed information seem to be:
- Section about Dependabot secrets
https://github.com/github/docs/blame/e2f952a115fc4cb3d34281b1fa472ac3cd33e7da/content/code-security/dependabot/troubleshooting-dependabot/troubleshooting-dependabot-on-github-actions.md#L45 - Section about how to increase
permissions
https://github.com/github/docs/blame/e2f952a115fc4cb3d34281b1fa472ac3cd33e7da/content/code-security/dependabot/troubleshooting-dependabot/troubleshooting-dependabot-on-github-actions.md#L81
What part(s) of the article would you like to see updated?
- If possible please consolidate the information
- Remove contradictions
- Add links so that the sections not only say "you can increase permissions, you can access secrets", but also link to the relevant sections about how to do it
- Document the security concerns / the rationale why the token has read-only permissions by default and why there are dedicated Dependabot secrets, so that users are hopefully careful with changing this
Additional information
No response