Skip to content

Commit 99d3141

Browse files
authored
Update README.md (#723)
1 parent 7a6d8a8 commit 99d3141

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: README.md

+9
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,15 @@ In the example above multiple JDKs are installed for the same job. The result af
273273
- [Modifying Maven Toolchains](docs/advanced-usage.md#Modifying-Maven-Toolchains)
274274
- [Java Version File](docs/advanced-usage.md#Java-version-file)
275275

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+
276285
## License
277286

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

0 commit comments

Comments
 (0)