Skip to content

Commit

Permalink
Merge pull request #11332 from cBioPortal/fix/security-report
Browse files Browse the repository at this point in the history
Improved logging for security tests on circleci
  • Loading branch information
zainasir authored Jan 13, 2025
2 parents 19599f2 + 003fd14 commit 3e67e8a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -435,11 +435,15 @@ jobs:
IMAGE=$BASE_REPO:master-web-shenandoah
docker pull $IMAGE
docker-scout cves $IMAGE --format sbom | jq -r "[.vulnerabilities[].vulnerabilities[] | $OUTPUT_FORMAT] | $SORT" > master_report.sbom
echo "Docker Scout Report for Master"
cat master_report.sbom | jq
- run:
name: Run Docker Scout on PR
command: |
IMAGE=$DEV_REPO:$CIRCLE_SHA1-web-shenandoah
docker-scout cves $IMAGE --format sbom | jq -r "[.vulnerabilities[].vulnerabilities[] | $OUTPUT_FORMAT] | $SORT" > pr_report.sbom
echo "Docker Scout Report for PR"
cat pr_report.sbom | jq
- run:
name: Analyze and report results
command: |
Expand All @@ -451,8 +455,13 @@ jobs:
exit 1
else
echo "No new vulnerabilities found!"
echo "Individual reports for master and pr have been saved under the Artifacts tab."
exit 0
fi
- store_artifacts:
path: /tmp/repos/master_report.sbom
- store_artifacts:
path: /tmp/repos/pr_report.sbom

workflows:
end_to_end_tests:
Expand Down

0 comments on commit 3e67e8a

Please sign in to comment.