Skip to content

Commit cc3613c

Browse files
hallvictoriaVictoria Hall
andauthored
Add build vulnerability scan (#317)
* run vulnerability scan + testing * revert npm audit test --------- Co-authored-by: Victoria Hall <victoria.hall@microsoft.com>
1 parent 4b36578 commit cc3613c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

azure-pipelines/templates/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
displayName: 'Install Node.js'
1717
- script: npm ci
1818
displayName: 'npm ci'
19+
- script: npm audit --production
20+
displayName: 'Run vulnerability scan'
1921
- script: npm run updateVersion -- --buildNumber $(Build.BuildNumber)
2022
displayName: 'npm run updateVersion'
2123
condition: and(succeeded(), eq(${{ parameters.IsPrerelease }}, true))

0 commit comments

Comments
 (0)