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

[sarif] Add Reporting Descriptors & More "Optionality" #5269

Merged
merged 3 commits into from
Jan 29, 2025

Conversation

DavidBakerEffendi
Copy link
Collaborator

  • Added reporting descriptors which allow one to add more meta data to rules, and link findings to a given existing entry.
  • Moved the sarif instantiation to the RunBeforeCode object which separates actions from tools deriving from Joern
  • Using more "optional" properties where possible on properties which are not required by the sarif schema

* Added reporting descriptors which allow one to add more meta data to rules, and link findings to a given existing entry.
* Moved the sarif instantiation to the RunBeforeCode object which separates actions from tools deriving from Joern
* Using more "optional" properties where possible on properties which are not required by the sarif schema
@@ -21,11 +21,11 @@ object Schema {
final case class ArtifactLocation(uri: Option[URI] = None, uriBaseId: Option[String] = Option("PROJECT_ROOT"))
extends SarifSchema.ArtifactLocation

final case class CodeFlow(message: Message, threadFlows: List[ThreadFlow]) extends SarifSchema.CodeFlow
final case class CodeFlow(message: Option[Message] = None, threadFlows: List[ThreadFlow]) extends SarifSchema.CodeFlow
Copy link
Contributor

Choose a reason for hiding this comment

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

parameters with default values should come last

@DavidBakerEffendi DavidBakerEffendi merged commit 095bd4e into master Jan 29, 2025
5 checks passed
@DavidBakerEffendi DavidBakerEffendi deleted the dave/sarif/rule-categories branch January 29, 2025 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants