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

fix: sarif: add result and kind #68

Merged
merged 7 commits into from
Dec 18, 2024
Merged

fix: sarif: add result and kind #68

merged 7 commits into from
Dec 18, 2024

Conversation

woodruffw
Copy link
Owner

See #66.

Blocked by psastras/sarif-rs#738.

@woodruffw woodruffw added the enhancement New feature or request label Oct 29, 2024
@woodruffw woodruffw self-assigned this Oct 29, 2024
@@ -43,6 +70,14 @@ fn build_result(finding: &Finding<'_>) -> SarifResult {
.message(finding.ident)
.rule_id(finding.ident)
.locations(build_locations(&finding.locations))
.level(
serde_json::to_value(ResultLevel::from(finding.determinations.severity))
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NB: For some reason .level(...) takes Into<Value> instead of Into<ResultLevel>, hence this explicit serde_json call. I think this is an API deficiency on serde-sarif's side, but not related to the blocking bug.

@woodruffw woodruffw added bugfix Fixes a known bug and removed enhancement New feature or request blocked labels Dec 18, 2024
@woodruffw woodruffw changed the title feat: sarif: add result and kind fix: sarif: add result and kind Dec 18, 2024
@woodruffw woodruffw merged commit 574b278 into main Dec 18, 2024
5 checks passed
@woodruffw woodruffw deleted the ww/sarif-result-kind branch December 18, 2024 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes a known bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant