Skip to content

Commit 268ab00

Browse files
Apply suggestions from code review
1 parent ca766b8 commit 268ab00

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
@@ -452,11 +452,11 @@ If you create a fine-grained personal access token, apply the `Contents`-permiss
452452
```yaml
453453
- uses: actions/checkout@v4
454454
with:
455+
# 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".
455456
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
456457
```
457458
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).
458459
459-
Having a fallback to GITHUB_TOKEN helps things like Dependabot to continue working, as they may not be granted access to the PAT.
460460
461461
> [!TIP]
462462
> 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)