From 1d850e30d48dab6d194421987e2ee880d5138914 Mon Sep 17 00:00:00 2001 From: amos Date: Mon, 16 Oct 2023 10:13:05 -0400 Subject: [PATCH] adds permissions --- .github/workflows/stale.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index eebf123..9a2b1ae 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -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 @@ -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'