We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a6d8a8 commit 99d3141Copy full SHA for 99d3141
README.md
@@ -273,6 +273,15 @@ In the example above multiple JDKs are installed for the same job. The result af
273
- [Modifying Maven Toolchains](docs/advanced-usage.md#Modifying-Maven-Toolchains)
274
- [Java Version File](docs/advanced-usage.md#Java-version-file)
275
276
+## Recommended permissions
277
+
278
+When using the `setup-java` action in your GitHub Actions workflow, it is recommended to set the following permissions to ensure proper functionality:
279
280
+```yaml
281
+permissions:
282
+ contents: read # access to check out code and install dependencies
283
+```
284
285
## License
286
287
The scripts and documentation in this project are released under the [MIT License](LICENSE).
0 commit comments