From cdc2fbbdb31659dc90193dbc584c09d02aee22bf Mon Sep 17 00:00:00 2001 From: Mike Maietta Date: Wed, 26 Jul 2023 08:22:27 -0700 Subject: [PATCH] chore: add permissions and edit cron job for stale issue workflow --- .github/workflows/stale.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index a0c2443191..b6919baa37 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,11 +1,14 @@ name: 'Close stale issues and PR' on: schedule: - - cron: '30 1 * * *' + - cron: '0 0 * * *' jobs: stale: runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write steps: - uses: actions/stale@v8 with: @@ -14,4 +17,3 @@ jobs: close-issue-message: 'This issue was closed because it has been stalled for 30 days with no activity.' days-before-stale: 60 days-before-close: 30 - days-before-pr-close: -1