Skip to content

Commit 48e3635

Browse files
MAINT Permission for GH token in stale.yml (huggingface#9427)
* 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]>
1 parent 6dc6486 commit 48e3635

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/stale.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
name: Close Stale Issues
1010
if: github.repository == 'huggingface/diffusers'
1111
runs-on: ubuntu-latest
12+
permissions:
13+
issues: write
14+
pull-requests: write
1215
env:
1316
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1417
steps:

0 commit comments

Comments
 (0)