Skip to content

Commit

Permalink
ci: run permission monitor only on unix systems
Browse files Browse the repository at this point in the history
- Added condition to skip steps if the runner's operating system is Windows in black.yml, build.yml, and publish.yml.
  • Loading branch information
matfax committed Jul 11, 2023
1 parent 354d8df commit 6f9cfac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
shell: bash
steps:
- uses: GitHubSecurityLab/actions-permissions/[email protected]
if: runner.os != 'Windows'
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- uses: actions/[email protected]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
name: python ${{ matrix.python-version }} on ${{ matrix.os }}
steps:
- uses: GitHubSecurityLab/actions-permissions/[email protected]
if: runner.os != 'Windows'
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- uses: actions/[email protected]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
shell: bash
steps:
- uses: GitHubSecurityLab/actions-permissions/[email protected]
if: runner.os != 'Windows'
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- uses: actions/[email protected]
Expand Down

0 comments on commit 6f9cfac

Please sign in to comment.