aws-actions / vulnerability-scan-github-action-for-amazon-inspector

Scan artifacts with Amazon Inspector from GitHub Actions workflows.
https://docs.aws.amazon.com/inspector/
MIT License
25 stars 6 forks source link

Resolve v1.1.0 errors #55

Closed bluesentinelsec closed 4 months ago

bluesentinelsec commented 4 months ago

This action, v1.1.0, was throwing an unhanded exception in when there were zero Dockerfile findings. Because there were zero Dockerfile findings, the Dockerfile markdown report was not written. A later function would attempt to read a non-existent Dockerfile in this scenario, resulting in a fatal exception.

The code now gracefully handles this condition.