Skip to content

Commit 9084ef1

Browse files
zhouzipeaceiris
andauthored
Document fix for unauthorized push (#752)
Co-authored-by: peaceiris <[email protected]>
1 parent da39891 commit 9084ef1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,20 @@ The `GITHUB_TOKEN` has limitations for the first deployment so we have to select
561561
|---|---|
562562
| ![](./images/settings_select.jpg) | ![](./images/log_success.jpg) |
563563

564+
If the action fails to push the commit or tag with the following error:
565+
566+
```txt
567+
/usr/bin/git push origin gh-pages
568+
remote: Write access to repository not granted.
569+
fatal: unable to access 'https://github.com/username/repository.git/': The requested URL returned error: 403
570+
Error: Action failed with "The process '/usr/bin/git' failed with exit code 128"
571+
```
572+
573+
Navigate to your repository's settings / actions / general and in the "Workflow permissions" section, select "Read and write permissions":
574+
575+
<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">
576+
577+
564578
### ⭐️ Use the latest and specific release
565579

566580
We recommend you to use the latest and specific release of this action for stable CI/CD.

0 commit comments

Comments
 (0)