Skip to content

Commit

Permalink
Add new permission section (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarithaVattikuti authored Jan 16, 2025
1 parent 43e1389 commit 3d10edb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,15 @@ If the runner is not able to access github.com, any Go versions requested during
See "[Setting up the tool cache on self-hosted runners without internet access](https://docs.github.com/en/enterprise-server@3.2/admin/github-actions/managing-access-to-actions-from-githubcom/setting-up-the-tool-cache-on-self-hosted-runners-without-internet-access)"
for more information.

## Recommended permissions

When using the `setup-go` action in your GitHub Actions workflow, it is recommended to set the following permissions to ensure proper functionality:

```yaml
permissions:
contents: read # access to check out code and install dependencies
```

# License

The scripts and documentation in this project are released under the [MIT License](LICENSE)
Expand Down

0 comments on commit 3d10edb

Please sign in to comment.