From e06c09889c8f56164ddc920d534357357769cf13 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 19 Jul 2022 07:54:11 +0100 Subject: [PATCH] Add permissions for workflow, GitHub issue 3202. --- .github/workflows/lock.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index c6691e46..a4d3e9b5 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -4,8 +4,14 @@ on: schedule: - cron: '0 0 * * *' +permissions: + contents: read + jobs: lock: + permissions: + issues: write # for dessant/lock-threads to lock issues + pull-requests: write # for dessant/lock-threads to lock PRs runs-on: ubuntu-latest steps: - uses: dessant/lock-threads@v2