Skip to content

Commit 08942d6

Browse files
authored
ci: add vulnerabilities check
1 parent 63f12cb commit 08942d6

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,27 @@ jobs:
3737
env:
3838
GITHUB_CONTEXT: ${{ toJson(github) }}
3939

40+
vulnerabilities:
41+
name: Vulnerabilities
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: PyAnsys Vulnerability check (on main)
45+
if: github.ref == 'refs/heads/main'
46+
uses: ansys/actions/check-vulnerabilities@v10
47+
with:
48+
python-version: ${{ env.MAIN_PYTHON_VERSION }}
49+
python-package-name: "ansys-dpf-core"
50+
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
51+
52+
- name: PyAnsys Vulnerability check (on dev mode)
53+
if: github.ref != 'refs/heads/main'
54+
uses: ansys/actions/check-vulnerabilities@v10
55+
with:
56+
python-version: ${{ env.MAIN_PYTHON_VERSION }}
57+
python-package-name: "ansys-dpf-core"
58+
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
59+
dev-mode: true
60+
4061
pick_server_suffix:
4162
runs-on: ubuntu-latest
4263
outputs:
@@ -241,4 +262,4 @@ jobs:
241262
run: |
242263
git checkout master
243264
git reset --hard main
244-
git push
265+
git push

0 commit comments

Comments
 (0)