Skip to content

Commit 3d10edb

Browse files
Add new permission section (#533)
1 parent 43e1389 commit 3d10edb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,15 @@ If the runner is not able to access github.com, any Go versions requested during
262262
See "[Setting up the tool cache on self-hosted runners without internet access](https://docs.github.com/en/[email protected]/admin/github-actions/managing-access-to-actions-from-githubcom/setting-up-the-tool-cache-on-self-hosted-runners-without-internet-access)"
263263
for more information.
264264

265+
## Recommended permissions
266+
267+
When using the `setup-go` action in your GitHub Actions workflow, it is recommended to set the following permissions to ensure proper functionality:
268+
269+
```yaml
270+
permissions:
271+
contents: read # access to check out code and install dependencies
272+
```
273+
265274
# License
266275

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

0 commit comments

Comments
 (0)