mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 14:35:00 +01:00
adding permissions to workflow (#2984)
This commit is contained in:
parent
36888a7c47
commit
d4e1a19ab1
3 changed files with 7 additions and 1 deletions
4
.github/workflows/example_notifier.yml
vendored
4
.github/workflows/example_notifier.yml
vendored
|
@ -2,6 +2,8 @@ name: Warning maintainers
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
paths: examples/**
|
paths: examples/**
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
jobs:
|
jobs:
|
||||||
job:
|
job:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -11,4 +13,4 @@ jobs:
|
||||||
uses: Poolitzer/notifier-action@master
|
uses: Poolitzer/notifier-action@master
|
||||||
with:
|
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 :)
|
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 }}
|
||||||
|
|
|
@ -5,6 +5,8 @@ on:
|
||||||
- requirements.txt
|
- requirements.txt
|
||||||
- requirements-dev.txt
|
- requirements-dev.txt
|
||||||
- .pre-commit-config.yaml
|
- .pre-commit-config.yaml
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
jobs:
|
jobs:
|
||||||
job:
|
job:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
2
.github/workflows/readme_notifier.yml
vendored
2
.github/workflows/readme_notifier.yml
vendored
|
@ -4,6 +4,8 @@ on:
|
||||||
paths:
|
paths:
|
||||||
- README.rst
|
- README.rst
|
||||||
- README_RAW.rst
|
- README_RAW.rst
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
jobs:
|
jobs:
|
||||||
job:
|
job:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in a new issue