Unverified Commit 48e36353 authored by Benjamin Bossan's avatar Benjamin Bossan Committed by GitHub
Browse files

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: default avatarSayak Paul <spsayakpaul@gmail.com>
parent 6dc64865
...@@ -9,6 +9,9 @@ jobs: ...@@ -9,6 +9,9 @@ jobs:
name: Close Stale Issues name: Close Stale Issues
if: github.repository == 'huggingface/diffusers' if: github.repository == 'huggingface/diffusers'
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps: steps:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment