From e91c2dc5883f4b199cc8cc4275eb275a9c87183e Mon Sep 17 00:00:00 2001 From: Ben Wells Date: Thu, 16 Jan 2025 09:27:57 -0500 Subject: [PATCH] Update README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 532a78ff..8e892f50 100644 --- a/README.md +++ b/README.md @@ -273,6 +273,15 @@ In the example above multiple JDKs are installed for the same job. The result af - [Modifying Maven Toolchains](docs/advanced-usage.md#Modifying-Maven-Toolchains) - [Java Version File](docs/advanced-usage.md#Java-version-file) +## Recommended permissions + +When using the `setup-java` 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).