Skip to content

Commit 56c873e

Browse files
committed
set permissions and use default token
1 parent 17e8175 commit 56c873e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/stale.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ env:
1212
DAYS_BEFORE_PR_STALE: 7
1313
DAYS_BEFORE_PR_CLOSE: 7
1414

15+
permissions:
16+
issues: write
17+
pull-requests: write
18+
1519
jobs:
1620
stale:
1721
name: "Stale"
@@ -21,7 +25,7 @@ jobs:
2125
- name: "Mark old PRs as stale"
2226
uses: actions/stale@v9
2327
with:
24-
repo-token: ${{ secrets.CLI_RELEASE }}
28+
repo-token: ${{ secrets.GITHUB_TOKEN }}
2529
stale-pr-message: "This PR was marked as stale after ${{ env.DAYS_BEFORE_PR_STALE }} days of inactivity and will be closed after another ${{ env.DAYS_BEFORE_PR_CLOSE }} days of further inactivity. If this PR should be kept open, just add a comment, remove the stale label or push new commits to it."
2630
close-pr-message: "This PR was closed automatically because it has been stalled for ${{ env.DAYS_BEFORE_PR_CLOSE }} days with no activity. Feel free to re-open it at any time."
2731
days-before-pr-stale: ${{ env.DAYS_BEFORE_PR_STALE }}

0 commit comments

Comments
 (0)