use PAT in docs - GITHUB_TOKEN #44252
-
Select Topic AreaQuestion BodyWhen a Github Actions workflow is started, the docs state that the Github Actions app sets a new short-lived token via the Isn't it ill adviced then to still leverage a (long lived) Personal Access Token if you want more permissions? Are there still cases where this would be needed? This is what I still find in the docs: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#granting-additional-permissions |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
Accessing a private repository other than the one running the workflow. The
GITHUB_TOKENis scoped to the repository, so it can't do that.Making events caused by the workflow (e.g. a push to the repository) trigger additional workflows. Activities authorized with the
GITHUB_TOKENnever do that to avoid unintentional recursive runs.