Skip to content

Commit

Permalink
Update azure-pipelines.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
akannan1087 committed Jan 9, 2025
1 parent b49ca28 commit 17d0bb6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,10 @@ stages:
inputs:
targetType: inline
script: |
./bin/trivy image --severity HIGH,CRITICAL,MEDIUM --ignore-unfixed $(containerRegistry)/$(imageRepository):$(tag)
./bin/trivy image --format json --output trivy-report.json --severity HIGH,CRITICAL,MEDIUM --ignore-unfixed $(containerRegistry)/$(imageRepository):$(tag)
# Publish Trivy Report as Artifact
- task: PublishPipelineArtifact@1
displayName: "Publish Trivy Scan Report"
inputs:
targetPath: "$(System.DefaultWorkingDirectory)/trivy-report.json"
artifact: "TrivyReport"

0 comments on commit 17d0bb6

Please sign in to comment.