mirror of
https://github.com/actions/download-artifact.git
synced 2025-01-29 09:29:42 -05:00
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:
parent
7fba95161a
commit
86f43ed3c7
1 changed files with 7 additions and 0 deletions
|
@ -251,3 +251,10 @@ If you must preserve permissions, you can `tar` all of your files together befor
|
|||
name: my-artifact
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue