From d4e1a19ab184ce9a9cd2fe8ae9a31c942db2a673 Mon Sep 17 00:00:00 2001 From: Poolitzer Date: Fri, 29 Apr 2022 23:49:33 +0200 Subject: [PATCH] adding permissions to workflow (#2984) --- .github/workflows/example_notifier.yml | 4 +++- .github/workflows/pre-commit_dependencies_notifier.yml | 2 ++ .github/workflows/readme_notifier.yml | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/example_notifier.yml b/.github/workflows/example_notifier.yml index a94873f1f..6521b32a8 100644 --- a/.github/workflows/example_notifier.yml +++ b/.github/workflows/example_notifier.yml @@ -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 }} \ No newline at end of file + repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pre-commit_dependencies_notifier.yml b/.github/workflows/pre-commit_dependencies_notifier.yml index 3ce4bcd16..b7c5dc89c 100644 --- a/.github/workflows/pre-commit_dependencies_notifier.yml +++ b/.github/workflows/pre-commit_dependencies_notifier.yml @@ -5,6 +5,8 @@ on: - requirements.txt - requirements-dev.txt - .pre-commit-config.yaml +permissions: + pull-requests: write jobs: job: runs-on: ubuntu-latest diff --git a/.github/workflows/readme_notifier.yml b/.github/workflows/readme_notifier.yml index d635b7d6b..4ec7d4587 100644 --- a/.github/workflows/readme_notifier.yml +++ b/.github/workflows/readme_notifier.yml @@ -4,6 +4,8 @@ on: paths: - README.rst - README_RAW.rst +permissions: + pull-requests: write jobs: job: runs-on: ubuntu-latest