Skip to content

Commit 3aa7bb2

Browse files
bluesentinelsecMichael Long
andauthored
Write CSV with no vulns (#86)
* reproducing issue - test 1 * resolve issue 85 - test 2 * test 3 * test fix --------- Co-authored-by: Michael Long <mlongii@amazon.com>
1 parent 51b7484 commit 3aa7bb2

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.github/workflows/test_containers.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ jobs:
3535
uses: aws-actions/vulnerability-scan-github-action-for-amazon-inspector@v1.1.3
3636
with:
3737
artifact_type: 'container'
38-
artifact_path: 'ubuntu:14.04'
38+
artifact_path: 'alpine:latest'
3939
display_vulnerability_findings: "enabled"
40-
sbomgen_version: "1.3.1"
40+
sbomgen_version: "1.4.0"
4141

42-
- name: Display scan results
43-
run: cat ${{ steps.inspector.outputs.inspector_scan_results }}
42+
- name: Display scan results (CSV)
43+
run: cat ${{ steps.inspector.outputs.inspector_scan_results_csv }}
4444

4545
- name: Validate scan content
4646
run: python3 validator/validate_inspector_scan.py --file ${{ steps.inspector.outputs.inspector_scan_results }}

entrypoint/entrypoint/orchestrator.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,6 @@ def install_sbomgen(args):
344344

345345

346346
def write_pkg_vuln_report_csv(out_scan_csv, scan_result: exporter.InspectorScanResult):
347-
if scan_result.total_vulns() == 0:
348-
logging.info("skipping package vulnerability CSV report because no vulnerabilities were detected")
349-
return
350-
351347
csv_output = exporter.to_csv(scan_result)
352348

353349
logging.info(f"writing package vulnerability CSV report to: {out_scan_csv}")

0 commit comments

Comments
 (0)