[GH-Actions][scale] Restrict permissions

master
MAGIC 2021-06-02 21:48:09 +02:00
parent 0d374b74e2
commit 52308d5599
No known key found for this signature in database
GPG Key ID: A40EE5665510C9D5
1 changed files with 4 additions and 1 deletions

View File

@ -3,11 +3,14 @@ on:
schedule: schedule:
# Once every day at midnight UTC # Once every day at midnight UTC
- cron: "0 0 * * *" - cron: "0 0 * * *"
workflow_dispatch: #workflow_dispatch:
jobs: jobs:
stale: stale:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps: steps:
- name: Mark/Close Stale Issues and Pull Requests 🗑️ - name: Mark/Close Stale Issues and Pull Requests 🗑️
uses: actions/stale@v3 uses: actions/stale@v3