Skip to content

Commit

Permalink
MAINT Permission for GH token in stale.yml (huggingface#9427)
Browse files Browse the repository at this point in the history
* MAINT Permission for GH token in stale.yml

See huggingface/peft#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 <[email protected]>
  • Loading branch information
BenjaminBossan and sayakpaul authored Sep 13, 2024
1 parent 6dc6486 commit 48e3635
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 48e3635

Please sign in to comment.