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

feat: sarif: add result and kind #68

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant