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
Correctly set scheme for URIs in the SARIF report output #6331
Conversation
detekt-report-sarif/src/main/kotlin/io/github/detekt/report/sarif/SarifOutputReport.kt
Fixed
Show fixed
Hide fixed
detekt-report-sarif/src/main/kotlin/io/github/detekt/report/sarif/SarifOutputReport.kt
Fixed
Show fixed
Hide fixed
detekt-report-sarif/src/main/kotlin/io/github/detekt/report/sarif/SarifOutputReport.kt
Fixed
Show fixed
Hide fixed
detekt-report-sarif/src/main/kotlin/io/github/detekt/report/sarif/SarifOutputReport.kt
Fixed
Show fixed
Hide fixed
detekt-report-sarif/src/main/kotlin/io/github/detekt/report/sarif/Results.kt
Outdated
Show resolved
Hide resolved
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, it took me a while to start on this :) Here are my findings. Test setuphttps://github.com/TWiStErRob/detekt-4165
ReportsMain branch CI: https://github.com/TWiStErRob/detekt-4165/actions/runs/5728342547 Results
Next steps
|
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.
GitHub is now very happy with these changes!
Notice:
- There were 6 reports in the past, linux, mac, windows. 4/6 were not navigable.
- After your recent force-push, the original 6 issues were closed, and now there are only 2 detected 3 times by separate CI jobs.
- This means that the paths (including base dirs) cancel each other out, and it doesn't matter which platform you run detekt on, GitHub will see them just the same! 🎉
detekt-report-sarif/src/main/kotlin/io/github/detekt/report/sarif/SarifOutputReport.kt
Fixed
Show fixed
Hide fixed
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6331 +/- ##
=========================================
Coverage 85.18% 85.18%
Complexity 4037 4037
=========================================
Files 564 564
Lines 13273 13274 +1
Branches 2387 2387
=========================================
+ Hits 11306 11307 +1
Misses 773 773
Partials 1194 1194
☔ View full report in Codecov by Sentry. |
@TWiStErRob if you could have a final look before merging that would be appreciated, thanks! |
Trying to run the integration tests, but need to update the repro with Gradle 8.4 and detekt mainline (see #6523 (comment)). |
Seems ok https://github.com/TWiStErRob/detekt-4165-2/security/code-scanning/2 The same issue is detected by all 3 platforms and preview is working: |
Any chance to get a release containing this fix before detekt 2.0? |
I'll include this in the upcoming 1.23.x release |
* Correctly set scheme for URIs in the SARIF report output * Update tests * Remove unused class * Use toUri to generate absolute ArtifactLocation paths
* Correctly set scheme for URIs in the SARIF report output * Update tests * Remove unused class * Use toUri to generate absolute ArtifactLocation paths
Fixes #4165
@TWiStErRob it would be great if you could test this - I've reviewed the output locally but haven't submitted anything to GitHub.