From 3d10edb4c2d9ac9923e94a5ec73fa063078e9234 Mon Sep 17 00:00:00 2001 From: HarithaVattikuti <73516759+HarithaVattikuti@users.noreply.github.com> Date: Thu, 16 Jan 2025 08:47:07 -0600 Subject: [PATCH] Add new permission section (#533) --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index b2e6de4..b23585d 100644 --- a/README.md +++ b/README.md @@ -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)