From 48e36353d8cbf0322ec1ad0684b95d11f70af2de Mon Sep 17 00:00:00 2001 From: Benjamin Bossan Date: Fri, 13 Sep 2024 17:30:57 +0200 Subject: [PATCH] MAINT Permission for GH token in stale.yml (#9427) * MAINT Permission for GH token in stale.yml See https://github.com/huggingface/peft/pull/2061 for the equivalent PR in PEFT. This restores the functionality of the stale bot after permissions for the token have been limited. The action still shows errors for PEFT but the bot appears to work fine. * Also add write permissions for PRs --------- Co-authored-by: Sayak Paul --- .github/workflows/stale.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index ff609ee769..443f65404d 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -9,6 +9,9 @@ jobs: name: Close Stale Issues if: github.repository == 'huggingface/diffusers' runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: