Skip to content

Commit ddb7ae4

Browse files
Merge pull request #376 from Dreamsorcerer/patch-1
2 parents ae11462 + b001e5f commit ddb7ae4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,10 +461,12 @@ If you create a fine-grained personal access token, apply the `Contents`-permiss
461461
```yaml
462462
- uses: actions/checkout@v4
463463
with:
464-
token: ${{ secrets.PAT }}
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".
465+
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
469+
468470
> [!TIP]
469471
> 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.
470472

0 commit comments

Comments
 (0)