Skip to content

Commit

Permalink
Merge pull request #147 from nhsuk/add-owasp-check
Browse files Browse the repository at this point in the history
Add OWASP check to build pipeline
  • Loading branch information
will-dyson-nhsd authored Jan 9, 2023
2 parents 76a37a1 + 82835f2 commit 8605c11
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@ steps:
- script: CI=true npm run test
displayName: testing

- task: dependency-check-build-task@6
displayName: 'Run OWASP Dependency Check'
inputs:
projectName: 'cookie-consent'
scanPath: '$(Build.SourcesDirectory)'
format: 'HTML, JUNIT'
reportsDirectory: '$(System.DefaultWorkingDirectory)/dependency-scan-results'

- task: PublishTestResults@2
displayName: 'Publish OWASP Dependency Check Results'
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: '$(System.DefaultWorkingDirectory)/dependency-scan-results/*junit.xml'
testRunTitle: 'Dependency check'
searchFolder: '$(Common.TestResultsDirectory)'

- task: SonarQubeAnalyze@5

- task: SonarQubePublish@5
Expand Down

0 comments on commit 8605c11

Please sign in to comment.