mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 06:25:12 +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:
|
||||
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 }}
|
||||
|
|
|
@ -5,6 +5,8 @@ on:
|
|||
- requirements.txt
|
||||
- requirements-dev.txt
|
||||
- .pre-commit-config.yaml
|
||||
permissions:
|
||||
pull-requests: write
|
||||
jobs:
|
||||
job:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
2
.github/workflows/readme_notifier.yml
vendored
2
.github/workflows/readme_notifier.yml
vendored
|
@ -4,6 +4,8 @@ on:
|
|||
paths:
|
||||
- README.rst
|
||||
- README_RAW.rst
|
||||
permissions:
|
||||
pull-requests: write
|
||||
jobs:
|
||||
job:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Loading…
Reference in a new issue