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:
godofredoc
2022-01-28 18:26:24 -08:00
committed by GitHub
parent 33ffb277da
commit 804631d619

View File

@@ -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 * * * *'