Skip to content

Commit b001e5f

Browse files
Apply suggestions from code review
1 parent 6494dc6 commit b001e5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,11 +461,11 @@ If you create a fine-grained personal access token, apply the `Contents`-permiss
461461
```yaml
462462
- uses: actions/checkout@v4
463463
with:
464+
# We pass the "PAT" secret to the checkout action; if no PAT secret is available to the workflow runner (eg. Dependabot) we fall back to the default "GITHUB_TOKEN".
464465
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
465466
```
466467
You can learn more about Personal Access Token in the [GitHub documentation](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token).
467468
468-
Having a fallback to GITHUB_TOKEN helps things like Dependabot to continue working, as they may not be granted access to the PAT.
469469
470470
> [!TIP]
471471
> If you're working in an organisation, and you don't want to create the PAT from your personal account, we recommend using a bot-account for such tokens.

0 commit comments

Comments
 (0)