package
Version:
v1.1.3
Opens a new window with list of versions in this module.
Published: Apr 21, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Write persists a SARIF report at path.
type ArtifactLocation struct {
URI string `json:"uri"`
}
type Driver struct {
Name string `json:"name"`
Version string `json:"version,omitempty"`
InformationURI string `json:"informationUri,omitempty"`
Rules []Rule `json:"rules,omitempty"`
}
type Location struct {
PhysicalLocation PhysicalLocation `json:"physicalLocation"`
}
type Message struct {
Text string `json:"text"`
}
type PhysicalLocation struct {
ArtifactLocation ArtifactLocation `json:"artifactLocation"`
}
type Report struct {
Schema string `json:"$schema"`
Version string `json:"version"`
Runs []Run `json:"runs"`
}
Build maps Wrkr findings to a deterministic SARIF report.
type Result struct {
RuleID string `json:"ruleId,omitempty"`
Level string `json:"level,omitempty"`
Message Message `json:"message"`
Locations []Location `json:"locations,omitempty"`
}
type Rule struct {
ID string `json:"id"`
ShortDescription Message `json:"shortDescription,omitempty"`
}
type Run struct {
Tool Tool `json:"tool"`
Results []Result `json:"results,omitempty"`
}
type Tool struct {
Driver Driver `json:"driver"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.