Skip to content

Commit 009b9ae

Browse files
benwellsjoshmgross
andauthored
Documentation update - add recommended permissions to Readme (#2043)
* Update README.md * Update README.md Co-authored-by: Josh Gross <[email protected]> --------- Co-authored-by: Josh Gross <[email protected]>
1 parent cbb7224 commit 009b9ae

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,16 @@ jobs:
311311
git commit -m "generated"
312312
git push
313313
```
314+
315+
## Recommended permissions
316+
317+
When using the `checkout` action in your GitHub Actions workflow, it is recommended to set the following `GITHUB_TOKEN` permissions to ensure proper functionality, unless alternative auth is provided via the `token` or `ssh-key` inputs:
318+
319+
```yaml
320+
permissions:
321+
contents: read
322+
```
323+
314324
*NOTE:* The user email is `{user.id}+{user.login}@users.noreply.github.com`. See users API: https://api.github.com/users/github-actions%5Bbot%5D
315325

316326

0 commit comments

Comments
 (0)