Skip to content

Commit 9c01d26

Browse files
author
Victoria Hall
committed
run vulnerability scan
1 parent 70907ba commit 9c01d26

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

eng/templates/jobs/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,8 @@ jobs:
2121
python -m pip install .
2222
displayName: 'Build python worker'
2323
# Skip the build stage for SDK and Extensions release branches. This stage will fail because pyproject.toml contains the updated (and unreleased) library version
24-
condition: and(eq(variables.isSdkRelease, false), eq(variables.isExtensionsRelease, false), eq(variables['USETESTPYTHONSDK'], false), eq(variables['USETESTPYTHONEXTENSIONS'], false))
24+
condition: and(eq(variables.isSdkRelease, false), eq(variables.isExtensionsRelease, false), eq(variables['USETESTPYTHONSDK'], false), eq(variables['USETESTPYTHONEXTENSIONS'], false))
25+
- bash: |
26+
pip install pip-audit
27+
pip-audit -r requirements.txt
28+
displayName: 'Run vulnerability scan'

pack/templates/macos_64_env_gen.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ steps:
1212
inputs:
1313
disableAutoCwd: true
1414
scriptPath: 'pack/scripts/mac_arm64_deps.sh'
15+
- bash: |
16+
pip install pip-audit
17+
pip-audit -r requirements.txt
18+
displayName: 'Run vulnerability scan'
1519
- task: CopyFiles@2
1620
inputs:
1721
contents: |

pack/templates/nix_env_gen.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ steps:
1212
inputs:
1313
disableAutoCwd: true
1414
scriptPath: 'pack/scripts/nix_deps.sh'
15+
- bash: |
16+
pip install pip-audit
17+
pip-audit -r requirements.txt
18+
displayName: 'Run vulnerability scan'
1519
- task: CopyFiles@2
1620
inputs:
1721
contents: |

pack/templates/win_env_gen.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ steps:
1212
- task: PowerShell@2
1313
inputs:
1414
filePath: 'pack\scripts\win_deps.ps1'
15+
- bash: |
16+
pip install pip-audit
17+
pip-audit -r requirements.txt
18+
displayName: 'Run vulnerability scan'
1519
- task: CopyFiles@2
1620
inputs:
1721
contents: |

0 commit comments

Comments
 (0)