Skip to content

Commit 4ea0477

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent acef259 commit 4ea0477

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

azure-pipelines.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,20 @@ stages:
5050
targetType: inline
5151
script: |
5252
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh
53+
- task: Bash@3
54+
displayName: "Download JUnit Template"
55+
inputs:
56+
targetType: inline
57+
script: |
58+
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/junit.tpl -o junit.tpl
59+
5360
# Run Trivy Scan
5461
- task: Bash@3
5562
displayName: "Run Trivy Scan"
5663
inputs:
5764
targetType: inline
5865
script: |
59-
./bin/trivy image --format template --template "@contrib/junit.tpl" --output trivy-report.xml --severity HIGH,CRITICAL,MEDIUM --ignore-unfixed $(containerRegistry)/$(imageRepository):$(tag)
66+
./bin/trivy image --format template --template "junit.tpl" --output trivy-report.xml --severity HIGH,CRITICAL,MEDIUM --ignore-unfixed $(containerRegistry)/$(imageRepository):$(tag)
6067
# Step 4: Publish Trivy XML Report as Artifact
6168
- task: PublishPipelineArtifact@1
6269
displayName: "Publish Trivy XML Report"

0 commit comments

Comments
 (0)