From 804631d619acce13bc9d92618a9f091b3d0591dc Mon Sep 17 00:00:00 2001 From: godofredoc Date: Fri, 28 Jan 2022 18:26:24 -0800 Subject: [PATCH] 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. --- .github/workflows/lock.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/lock.yaml b/.github/workflows/lock.yaml index a7b096a45f..e046e83065 100644 --- a/.github/workflows/lock.yaml +++ b/.github/workflows/lock.yaml @@ -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 * * * *'