Skip to content

Commit 150c19b

Browse files
ci: simplify vulnerabilities check (#1504)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 618a92f commit 150c19b

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

.github/workflows/ci_cd.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,13 @@ jobs:
4545
name: Vulnerabilities
4646
runs-on: ubuntu-latest
4747
steps:
48-
- name: PyAnsys Vulnerability check (on main)
49-
if: github.ref == 'refs/heads/main'
50-
uses: ansys/actions/check-vulnerabilities@v8
48+
- uses: ansys/actions/check-vulnerabilities@v8
5149
with:
5250
python-version: ${{ env.MAIN_PYTHON_VERSION }}
5351
python-package-name: ${{ env.PACKAGE_NAME }}
5452
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
53+
dev-mode: ${{ github.ref != 'refs/heads/main' }}
5554

56-
- name: PyAnsys Vulnerability check (on dev mode)
57-
if: github.ref != 'refs/heads/main'
58-
uses: ansys/actions/check-vulnerabilities@v8
59-
with:
60-
python-version: ${{ env.MAIN_PYTHON_VERSION }}
61-
python-package-name: ${{ env.PACKAGE_NAME }}
62-
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
63-
dev-mode: true
6455
pr-name:
6556
if: github.event_name == 'pull_request'
6657
name: Check the name of the PR
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
simplify vulnerabilities check

0 commit comments

Comments
 (0)