diff --git a/.github/workflows/issue-stale.yml b/.github/workflows/issue-stale.yml index 7e6b7dbc6c8..65253a389fd 100644 --- a/.github/workflows/issue-stale.yml +++ b/.github/workflows/issue-stale.yml @@ -6,6 +6,11 @@ on: # This runs every day 20 minutes before midnight: https://crontab.guru/#40_23_*_*_* - cron: "40 23 * * *" +permissions: + actions: write + issues: write + pull-requests: write + jobs: stale: runs-on: ubuntu-latest @@ -15,7 +20,7 @@ jobs: id: issue-stale name: "Mark stale issues, close stale issues" with: - repo-token: ${{ secrets.STALE_TOKEN }} + repo-token: ${{ secrets.GITHUB_TOKEN }} ascending: true days-before-issue-close: 7 days-before-issue-stale: 365 @@ -31,7 +36,7 @@ jobs: id: pr-state name: "Mark stale PRs, close stale PRs" with: - repo-token: ${{ secrets.STALE_TOKEN }} + repo-token: ${{ secrets.GITHUB_TOKEN }} ascending: true days-before-issue-close: -1 days-before-issue-stale: -1