Use minimum required permissions for GitHub workflows

This reduces the attack surface if the workflows are ever compromised.
This commit is contained in:
mhmdanas 2022-07-03 20:38:51 +03:00
parent 45d2492bcb
commit a1f1acfbf9
3 changed files with 21 additions and 1 deletions

View file

@ -9,6 +9,10 @@ on:
# Run daily at midnight.
- cron: '0 0 * * *'
permissions:
issues: write
pull-requests: write
jobs:
noResponse:
runs-on: ubuntu-latest