Set lock github action workflow permissions explicitly. (#97459)
It is a good practice to set the github actions default permissions to the minimum required. The locks action didn't set permissions explicitly.
This commit is contained in:
5
.github/workflows/lock.yaml
vendored
5
.github/workflows/lock.yaml
vendored
@@ -2,6 +2,11 @@
|
||||
|
||||
name: 'Lock Threads'
|
||||
|
||||
# By specifying the access of one of the scopes, all of those that are not
|
||||
# specified are set to 'none'.
|
||||
permissions:
|
||||
issues: write
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 * * * *'
|
||||
|
||||
Reference in New Issue
Block a user