Prune results of Ruby query from SARIF

This commit is contained in:
Edoardo Pirovano 2022-11-04 13:58:27 +00:00
parent 71510779c2
commit 862a512899
No known key found for this signature in database
GPG key ID: 047556B5D93FFE28
8 changed files with 316 additions and 19 deletions

View file

@ -52,21 +52,28 @@ export const DID_AUTOBUILD_GO_ENV_VAR_NAME =
export interface SarifFile {
version?: string | null;
runs: Array<{
tool?: {
driver?: {
name?: string;
};
runs: SarifRun[];
}
export interface SarifRun {
tool?: {
driver?: {
name?: string;
semanticVersion?: string;
};
automationDetails?: {
id?: string;
};
artifacts?: string[];
results?: SarifResult[];
}>;
};
automationDetails?: {
id?: string;
};
artifacts?: string[];
results?: SarifResult[];
}
export interface SarifResult {
ruleId?: string;
message?: {
text?: string;
};
locations: Array<{
physicalLocation: {
artifactLocation: {