Skip to content

Commit 6494dc6

Browse files
Fix PAT instructions with Dependabot
1 parent ae11462 commit 6494dc6

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+
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
465465
```
466466
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).
467467
468+
Having a fallback to GITHUB_TOKEN helps things like Dependabot to continue working, as they may not be granted access to the PAT.
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)