Skip to content

Commit 050015d

Browse files
committed
Add Scope/Permissions documentation for PATs
Closes #347
1 parent 573710f commit 050015d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ storing the token as a secret in your repository and then passing the new token
234234
token: ${{ secrets.PAT }}
235235
```
236236

237-
If you create a personal access token, apply the `repo` and `workflow` scopes.
237+
If you create a personal access token (classic), apply the `repo` and `workflow` scopes.
238+
If you create a fine-grained personal access token, apply the `Contents`-permissions.
238239

239240
If you work in an organization and don't want to create a PAT from your personal account, we recommend using a [robot account](https://docs.github.com/en/github/getting-started-with-github/types-of-github-accounts) for the token.
240241

@@ -449,6 +450,9 @@ If your repository uses [protected branches](https://docs.github.com/en/reposito
449450
First, you have to create a new [Personal Access Token (PAT)](https://github.com/settings/tokens/new),
450451
store the token as a secret in your repository and pass the new token to the [`actions/checkout`](https://github.com/actions/checkout#usage) Action step.
451452
453+
If you create a personal access token (classic), apply the `repo` and `workflow` scopes.
454+
If you create a fine-grained personal access token, apply the `Contents`-permissions.
455+
452456
```yaml
453457
- uses: actions/checkout@v4
454458
with:

0 commit comments

Comments
 (0)