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

@ -6,6 +6,10 @@ on:
issues:
types: [opened, edited]
permissions:
issues: write
pull-requests: write
jobs:
try-minimize:
runs-on: ubuntu-latest