From 6f9cfac22fcf03585a1817a25375d1587c727602 Mon Sep 17 00:00:00 2001 From: matfax Date: Tue, 11 Jul 2023 18:00:51 +0200 Subject: [PATCH] ci: run permission monitor only on unix systems - Added condition to skip steps if the runner's operating system is Windows in black.yml, build.yml, and publish.yml. --- .github/workflows/black.yml | 1 + .github/workflows/build.yml | 1 + .github/workflows/publish.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 4417d6a..ea057d7 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -25,6 +25,7 @@ jobs: shell: bash steps: - uses: GitHubSecurityLab/actions-permissions/monitor@v1.0.0 + if: runner.os != 'Windows' with: config: ${{ vars.PERMISSIONS_CONFIG }} - uses: actions/checkout@v3.5.3 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 46e05ad..6f5bad2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,6 +25,7 @@ jobs: name: python ${{ matrix.python-version }} on ${{ matrix.os }} steps: - uses: GitHubSecurityLab/actions-permissions/monitor@v1.0.0 + if: runner.os != 'Windows' with: config: ${{ vars.PERMISSIONS_CONFIG }} - uses: actions/checkout@v3.5.3 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1e78314..c6d432f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,6 +21,7 @@ jobs: shell: bash steps: - uses: GitHubSecurityLab/actions-permissions/monitor@v1.0.0 + if: runner.os != 'Windows' with: config: ${{ vars.PERMISSIONS_CONFIG }} - uses: actions/checkout@v3.5.3