-
Notifications
You must be signed in to change notification settings - Fork 518
Include DirScanErrors info in SARIF file #1398
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
Include DirScanErrors info in SARIF file #1398
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1398 +/- ##
==========================================
+ Coverage 77.27% 77.30% +0.02%
==========================================
Files 279 279
Lines 7856 7866 +10
==========================================
+ Hits 6071 6081 +10
Misses 1426 1426
Partials 359 359
|
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.
LGTM
@gaurav-gogia thanks for the review. |
@nasir-rabbani Let me know if looks good to merge, thanks. |
Pinging, it would be great if this improvement was merged soon |
note: The |
Kudos, SonarCloud Quality Gate passed!
|
Update: Test passed. |
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.
LGTM
Hello, currently the DirScanErrors messages are not recorded in the SARIF file,
this information could be useful for the SARIF file consumer.
This pr added this missing info so that the consumer of the SARIF file can have this info and act as necessary.
These messages are considered warning so the change is adding a new node to the json which should not break existing user.
We have updated the go-sarif sdk to the v2, which is necessary for this change.
And I see v2 have much more SARIF properties support than v1 which is great changes.
The json properties order changed slightly so the text cases are fixed accordingly.
Fixed a issue that multierr.Append() does not assign the result so it is missing from the object for later usage.
golang.org/x/exp/typeparams
is removed by tidy mod.