Add Recommended Permissions

To reduce risk of over-privileged tokens, we are adding recommended permissions to popular GitHub-owned Actions READMEs
This commit is contained in:
Kylie Stradley 2025-01-21 21:30:55 -05:00 committed by GitHub
parent 7fba95161a
commit 86f43ed3c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -251,3 +251,10 @@ If you must preserve permissions, you can `tar` all of your files together befor
name: my-artifact name: my-artifact
path: my_files.tar path: my_files.tar
``` ```
# Recommended Permissions
The `actions/download-artifact` workflow relies on an internal authentication pattern and does not use the GITHUB_TOKEN, to reduce risk of over-privileged token, jobs that use `actions/download-artifact` should set permissions to none:
```yaml
perm