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 required: true
type: string type: string
permissions: {}
jobs: jobs:
slackNotification: slackNotification:
permissions:
contents: read
name: Slack Notification name: Slack Notification
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

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