Merge pull request #6728 from turrisxyz/setup-permissions

chore: Set permissions for GitHub actions
This commit is contained in:
Matthias
2022-04-28 16:23:06 +02:00
committed by GitHub

View File

@@ -309,6 +309,9 @@ jobs:
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
cleanup-prior-runs:
permissions:
actions: write # for rokroskar/workflow-run-cleanup-action to obtain workflow name & cancel it
contents: read # for rokroskar/workflow-run-cleanup-action to obtain branch
runs-on: ubuntu-20.04
steps:
- name: Cleanup previous runs on this branch
@@ -323,6 +326,8 @@ jobs:
runs-on: ubuntu-20.04
# Discord notification can't handle schedule events
if: (github.event_name != 'schedule')
permissions:
repository-projects: read
steps:
- name: Check user permission