Skip to content

Commit

Permalink
pip audit outside of venv
Browse files Browse the repository at this point in the history
  • Loading branch information
Victoria Hall committed Nov 21, 2024
1 parent df9ee64 commit da95c2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions eng/templates/jobs/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ jobs:
python setup.py sdist bdist_wheel
displayName: 'Build Python SDK for $(PYTHON_VERSION)'
- bash: |
pip install pip-audit
python -m venv .venv
.venv/Scripts/Activate.ps1
pip install pip-audit .
.venv/Scripts/Activate
pip install .
pip-audit
displayName: 'Run vulnerability scan'
3 changes: 2 additions & 1 deletion eng/templates/official/jobs/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ jobs:
python setup.py sdist bdist_wheel
displayName: 'Build Python SDK'
- bash: |
pip install pip-audit
python -m venv .venv
.venv/Scripts/Activate
pip install pip-audit .
pip install .
pip-audit
displayName: 'Run vulnerability scan'

0 comments on commit da95c2e

Please sign in to comment.