You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -574,16 +574,14 @@ fatal: unable to access 'https://github.com/username/repository.git/': The reque
574
574
Error: Action failed with "The process '/usr/bin/git' failed with exit code 128"
575
575
```
576
576
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).
578
578
579
579
```yaml
580
580
permissions:
581
581
contents: write
582
582
```
583
583
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.
0 commit comments