-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat(image): updated json report added package locations fields #6333
feat(image): updated json report added package locations fields #6333
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @DmitriyLewen, needed your opinion on this. After integrating the Location Changes, I noticed that |
@parvez0 You need to update |
Hey @DmitriyLewen what do I have to do in |
Hm... we don't insert
|
7a9ccae
to
e4132b2
Compare
c2462bb
to
1439b5e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1439b5e
to
6f12b0c
Compare
Originally, our policy was to include only minimal data in reports. It may be better to embed Package in DetectedVulnerability than to gradually add more and more attributes. |
sounds logical. |
Hey @DmitriyLewen, I'll take a look at this and update |
…ocation in json report
removed redundant code changes and updated test cases
6f12b0c
to
bac7a6c
Compare
We're so sorry. We discussed this offline and found out that embedding packages will get lots of duplicate data if multiple vulnerabilities are found in one package. We need to carefully think about it. |
Hey @knqyf263, I had the same question and was just about to reach out to you. Please let me know if you've settled on an approach for this and need my assistance to finalize it. In the meantime, I'll start looking into other issues that I can address. |
This PR is stale because it has been labeled with inactivity. |
Description
This pull request introduces a new feature to include package location indexes in the JSON report.
Changes
pkg/scanner/local/server.go
to use the location data from the detected vulnerability.pkg/report/sarif.go
to reuse the calculated location information if available.Location
underDetectedVulnerability
inpkg/types/vulnerability.go
to update the extracted location data.integration/testdata/*.json.golden
to verify Location field in json reportsUsage
Command output before this feature change
Command output after introducing this feature
Related issues
Checklist