Skip to content

Commit

Permalink
adds permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
raphenya committed Oct 16, 2023
1 parent 65da81d commit 1d850e3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
name: 'Close stale issues'
on:
schedule:
- cron: '0 0 * * *'
- cron: '11 11 * * *'

env:
REPO_NAME: ${{ github.event.repository.name }}

permissions:
contents: write
issues: write
pull-requests: write

jobs:
stale:
name: Stale
Expand All @@ -15,7 +20,6 @@ jobs:
run: echo "REPOSITORY_NAME=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
- uses: actions/stale@v8
with:
repo-token: ${{ secrets.STALE_TOKEN }}
stale-issue-message: 'Issue is stale and will be closed in 7 days unless there is new activity'
stale-pr-message: 'PR is stale and will be closed in 7 days unless there is new activity'
stale-issue-label: 'stale'
Expand Down

0 comments on commit 1d850e3

Please sign in to comment.