File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1+ simplify vulnerabilities check
You can’t perform that action at this time.
0 commit comments