1
0
Fork 0
mirror of https://github.com/actions/checkout.git synced 2025-03-31 05:20:06 +02:00

Update Github Token name in readme.md

Updated documentation to show the correct name of the default GITHUB_TOKEN.
https://docs.github.com/en/actions/security-guides/automatic-token-authentication
This commit is contained in:
Stephen_Lester 2022-11-23 10:27:07 -07:00 committed by GitHub
parent bf085276ce
commit afd333405e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ When Git 2.18 or higher is not in your PATH, falls back to the REST API to downl
#
# [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
#
# Default: ${{ github.token }}
# Default: ${{ github.GITHUB_TOKEN }}
token: ''
# SSH key used to fetch the repository. The SSH key is configured with the local
@ -185,7 +185,7 @@ When Git 2.18 or higher is not in your PATH, falls back to the REST API to downl
path: my-tools
```
> - `${{ github.token }}` is scoped to the current repository, so if you want to checkout a different repository that is private you will need to provide your own [PAT](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line).
> - `${{ github.GITHUB_TOKEN }}` is scoped to the current repository, so if you want to checkout a different repository that is private you will need to provide your own [PAT](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line).
## Checkout pull request HEAD commit instead of merge commit