Skip to content

Commit ac45008

Browse files
authored
docs: Add GitHub documentation references to permissions (#754)
1 parent 414c92c commit ac45008

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -574,16 +574,14 @@ fatal: unable to access 'https://github.com/username/repository.git/': The reque
574574
Error: Action failed with "The process '/usr/bin/git' failed with exit code 128"
575575
```
576576

577-
Please add the write permission to the `permissions.contents` in a workflow/job.
577+
Please add the write permission to the [`permissions.contents` in a workflow/job](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions).
578578

579579
```yaml
580580
permissions:
581581
contents: write
582582
```
583583

584-
Or, navigate to your repository's settings / actions / general and in the "Workflow permissions" section, select "Read and write permissions":
585-
586-
<img width="700" alt="Enabling Read and write permissions to the GITHUB_TOKEN on GitHub Actions" src="https://user-images.githubusercontent.com/30958501/168609359-242f59a9-34c6-4272-9793-d6b2cc823837.png">
584+
Alternatively, you can [configure the default `GITHUB_TOKEN` permissions](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#configuring-the-default-github_token-permissions) by selecting read and write permissions.
587585

588586

589587
### ⭐️ Use the latest and specific release

0 commit comments

Comments
 (0)