From ea598fbca74d637cd2fdc4b603951fdfea7f9225 Mon Sep 17 00:00:00 2001 From: bbhtt Date: Tue, 10 Dec 2024 17:26:51 +0530 Subject: [PATCH] stale: Use github token and add permission --- .github/workflows/stale.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 5d65569..a9b2051 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -2,16 +2,17 @@ name: "Close stale PR" on: schedule: - cron: "0 0 * * *" - workflow_dispatch: jobs: stale: + permissions: + pull-requests: write runs-on: ubuntu-latest steps: - uses: actions/stale@v9 with: - repo-token: ${{ secrets.FLATHUBBOT_TOKEN }} + repo-token: ${{ secrets.GITHUB_TOKEN }} stale-pr-message: "This PR hasn't received any updates in a year and will be automatically closed in 30 days. If you still plan to work on this please comment or re-open the PR." days-before-stale: -1 days-before-close: -1