From 52308d55993518b17129da546ee8a9e768afe8d4 Mon Sep 17 00:00:00 2001 From: MAGIC Date: Wed, 2 Jun 2021 21:48:09 +0200 Subject: [PATCH] [GH-Actions][scale] Restrict permissions --- .github/workflows/close_old_issues_and_prs.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/close_old_issues_and_prs.yml b/.github/workflows/close_old_issues_and_prs.yml index 0f081980..beebff2b 100644 --- a/.github/workflows/close_old_issues_and_prs.yml +++ b/.github/workflows/close_old_issues_and_prs.yml @@ -3,11 +3,14 @@ on: schedule: # Once every day at midnight UTC - cron: "0 0 * * *" - workflow_dispatch: + #workflow_dispatch: jobs: stale: runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write steps: - name: Mark/Close Stale Issues and Pull Requests 🗑️ uses: actions/stale@v3