Skip to content

Commit 99d3141

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

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy