Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved logging for security tests on circleci #11332

Merged
merged 2 commits into from
Jan 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading