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

Option to not include description in findingsDetails #49

Open
ChrisPage-AT opened this issue Aug 9, 2024 · 4 comments
Open

Option to not include description in findingsDetails #49

ChrisPage-AT opened this issue Aug 9, 2024 · 4 comments

Comments

@ChrisPage-AT
Copy link

Would it be possible to include an input field to disable including the descriptions of the CVEs in the findingsDetails output? Sometimes the descriptions of CVEs can be excessively long or contain special characters that break automations. The description can still be found by following the uri link, so having this as an option would be really nice.

@alexjurkiewicz
Copy link
Owner

alexjurkiewicz commented Aug 10, 2024 via email

@ChrisPage-AT
Copy link
Author

Of course! The JSON itself is fine, it just ends up not being usable in later steps when certain CVEs are present. I have some bash steps after I run ecr-scan-image that parse through the findingsDetails and generate a .sarif to upload to the Code Scanning section of the Security tab on GitHub for the repo.

The length issue is when you get enough super long descriptions like this. That isn't the longest one I've seen and it doesn't take very many of those to push the findingDetails JSON's total length beyond the bash argument character limit. I can't find an example of a bad character CVE because we've since resolved that one, but I believe the description contained an extended ascii character that bash apparently doesn't support.

In both situations it ends up causing the job to fail. I was initially thinking about asking if there could be a character limit on what findingDetails returns, but it seemed easier and cleaner just to have the option to not return the description fields in the JSON. If there's anything else you need or if you're interested in pulling the sarif logic into this action, please let me know!

@alexjurkiewicz
Copy link
Owner

alexjurkiewicz commented Aug 12, 2024 via email

@ChrisPage-AT
Copy link
Author

Awesome! And yeah that totally makes sense to me. Definitely don't want to change default behaviors on folks without proper warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants