Skip to content

Commit 4496d37

Browse files
committed
docs: Add instructions to grant GitHub Actions permission to create git tags
1 parent 60dad69 commit 4496d37

File tree

1 file changed

+13
-0
lines changed
  • src/ScriptModuleRepositoryTemplate/TemplateRepoFiles

1 file changed

+13
-0
lines changed

src/ScriptModuleRepositoryTemplate/TemplateRepoFiles/ReadMe.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,19 @@ Next we want to create an Environment so that stable module versions require man
8080
If your GitHub account does not meet [the requirements to use `Environments`](https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment), the `Environments` section will not be available.
8181
You will instead need to add [the Manual Workflow Approval action](https://github.com/marketplace/actions/manual-workflow-approval) to [the deployment workflow](/.github/workflows/build-test-and-deploy-powershell-module.yml) to block deployments until they are approved.
8282

83+
Finally, we will need to grant GitHub Actions permission to add git tags to the repository so it can keep track of the version number:
84+
85+
1. You should still be in the `Settings` section of your repository.
86+
1. In the left-hand menu, in the `Code and automation` section, click on `Actions` and select `General`.
87+
1. Scroll down to `Workflow permissions` and ensure `Read and write permissions` is selected.
88+
1. Click the `Save` button.
89+
90+
If you do not do this you will get the following error in the `Set the new version tag` step of the deployment workflow:
91+
92+
```text
93+
fatal: unable to access 'https://github.com/<Author>/<Repo>/': The requested URL returned error: 403
94+
```
95+
8396
</details>
8497

8598
<details>

0 commit comments

Comments
 (0)