adding permissions to workflow (#2984)

This commit is contained in:
Poolitzer 2022-04-29 23:49:33 +02:00 committed by Hinrich Mahler
parent 36888a7c47
commit d4e1a19ab1
3 changed files with 7 additions and 1 deletions

View file

@ -2,6 +2,8 @@ name: Warning maintainers
on:
pull_request_target:
paths: examples/**
permissions:
pull-requests: write
jobs:
job:
runs-on: ubuntu-latest
@ -11,4 +13,4 @@ jobs:
uses: Poolitzer/notifier-action@master
with:
notify-message: Hey there. Relax, I am just a little warning for the maintainers to release directly after merging your PR, otherwise we have broken examples and people might get confused :)
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token: ${{ secrets.GITHUB_TOKEN }}

View file

@ -5,6 +5,8 @@ on:
- requirements.txt
- requirements-dev.txt
- .pre-commit-config.yaml
permissions:
pull-requests: write
jobs:
job:
runs-on: ubuntu-latest

View file

@ -4,6 +4,8 @@ on:
paths:
- README.rst
- README_RAW.rst
permissions:
pull-requests: write
jobs:
job:
runs-on: ubuntu-latest