Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document fix for unauthorized push #752

Merged
merged 4 commits into from
May 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,20 @@ The `GITHUB_TOKEN` has limitations for the first deployment so we have to select
|---|---|
| ![](./images/settings_select.jpg) | ![](./images/log_success.jpg) |

If the action fails to push the commit or tag with the following error:

```txt
/usr/bin/git push origin gh-pages
remote: Write access to repository not granted.
fatal: unable to access 'https://github.com/username/repository.git/': The requested URL returned error: 403
Error: Action failed with "The process '/usr/bin/git' failed with exit code 128"
```

Navigate to your repository's settings / actions / general and in the "Workflow permissions" section, select "Read and write permissions":

<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">


### ⭐️ Use the latest and specific release

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