From ba509253bace237b4a0ae2a68f13c5d68c559319 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Tue, 14 Nov 2023 00:46:01 +0800 Subject: [PATCH] fix: add permissions to no-response workflow --- .github/workflows/lock.yml | 9 ++++----- .github/workflows/no-response.yml | 3 +++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index d044c151..c76f7ba0 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -5,16 +5,15 @@ on: - cron: "5 3 * * *" workflow_dispatch: -permissions: - issues: write - pull-requests: write - concurrency: group: lock jobs: - action: + lock: runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write steps: - uses: dessant/lock-threads@v4 with: diff --git a/.github/workflows/no-response.yml b/.github/workflows/no-response.yml index 44dc08e8..37039061 100644 --- a/.github/workflows/no-response.yml +++ b/.github/workflows/no-response.yml @@ -9,8 +9,11 @@ on: jobs: noResponse: runs-on: ubuntu-latest + permissions: + issues: write steps: - uses: lee-dohm/no-response@v0.5.0 with: token: ${{ github.token }} + daysUntilClose: 7 responseRequiredLabel: waiting on op