From 5e5e617693f62c7f6ddbc562105b9725e985b714 Mon Sep 17 00:00:00 2001 From: Josh Hunt Date: Thu, 27 Jul 2023 12:29:41 +0000 Subject: [PATCH] Chore: Use GITHUB_TOKEN in stale instead of grot token (#72126) * Chore: Use GITHUB_TOKEN in stale instead of grot token * update permissions --- .github/workflows/stale.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 598193f696a..de50fe2f26b 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -3,13 +3,16 @@ on: schedule: - cron: '30 1 * * *' +permissions: + pull-requests: write + jobs: stale: runs-on: ubuntu-latest steps: - uses: actions/stale@v8 with: - repo-token: ${{ secrets.GH_BOT_ACCESS_TOKEN }} + repo-token: ${{ secrets.GITHUB_TOKEN }} # Number of days of inactivity before a stale Issue or Pull Request is closed. # Set to -1 to disable. If disabled, issues still need to be closed manually, but will remain marked as stale. days-before-close: 14