Restrict permissions, should only need to read here.

This commit is contained in:
Remco Burema 2022-11-04 11:57:53 +01:00
parent 15f31a7c0c
commit 61a491f910
2 changed files with 9 additions and 2 deletions

View file

@ -23,9 +23,12 @@ on:
required: true
type: string
permissions: {}
jobs:
slackNotification:
permissions:
contents: read
name: Slack Notification
runs-on: ubuntu-latest

View file

@ -19,9 +19,13 @@ on:
- 'resources/intent/ultimaker**'
- 'resources/quality/ultimaker**'
- 'resources/variants/ultimaker**'
permissions: {}
jobs:
slackNotification:
permissions:
contents: read
name: Slack Notification
runs-on: ubuntu-latest
steps:
@ -33,4 +37,4 @@ jobs:
SLACK_COLOR: '#00FF00'
SLACK_TITLE: Print profiles changed
MSG_MINIMAL: commit
SLACK_WEBHOOK: ${{ secrets.SLACK_CURA_PPM_HOOK }}
SLACK_WEBHOOK: ${{ secrets.SLACK_CURA_PPM_HOOK }}