-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix tests add violation test to parser
- Loading branch information
Showing
18 changed files
with
1,639 additions
and
7,390 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
1,438 changes: 267 additions & 1,171 deletions
1,438
tests/testdata/output/audit/audit_simple_json.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,75 @@ | ||
{ | ||
"scans": [ | ||
{ | ||
"target": "/Users/user/ejs-frog-demo", | ||
"vulnerabilities": { | ||
"sca": { | ||
"scan_ids": [ | ||
"711851ce-68c4-4dfd-7afb-c29737ebcb96" | ||
], | ||
"security": { | ||
"Critical": { | ||
"Applicable": 1, | ||
"Not Applicable": 2 | ||
}, | ||
"High": { | ||
"Not Applicable": 2 | ||
}, | ||
"Medium": { | ||
"Not Applicable": 3, | ||
"Not Covered": 3 | ||
}, | ||
"Unknown": { | ||
"Not Covered": 1 | ||
} | ||
} | ||
}, | ||
"iac": {}, | ||
"secrets": { | ||
"Medium": { | ||
"": 3 | ||
} | ||
}, | ||
"sast": { | ||
"High": { | ||
"": 1 | ||
}, | ||
"Low": { | ||
"": 3 | ||
} | ||
} | ||
"scans": [ | ||
{ | ||
"target": "/Users/user/project-with-issues", | ||
"vulnerabilities": { | ||
"sca": { | ||
"scan_ids": [ | ||
"711851ce-68c4-4dfd-7afb-c29737ebcb96" | ||
], | ||
"security": { | ||
"High": { | ||
"Undetermined": 1 | ||
}, | ||
"violations": { | ||
"watches": [ | ||
"Security_watch_1" | ||
], | ||
"sca": { | ||
"scan_ids": [ | ||
"711851ce-68c4-4dfd-7afb-c29737ebcb96" | ||
], | ||
"security": { | ||
"Critical": { | ||
"Applicable": 1, | ||
"Not Applicable": 2 | ||
}, | ||
"High": { | ||
"Not Applicable": 2 | ||
} | ||
} | ||
}, | ||
"iac": {}, | ||
"secrets": { | ||
"Medium": { | ||
"": 1 | ||
} | ||
}, | ||
"sast": { | ||
"High": { | ||
"": 1 | ||
} | ||
} | ||
"Medium": { | ||
"Applicable": 1, | ||
"Undetermined": 1 | ||
}, | ||
"Unknown": { | ||
"Applicable": 1 | ||
} | ||
} | ||
}, | ||
"iac": { | ||
"High": { | ||
"": 1 | ||
} | ||
}, | ||
"secrets": { | ||
"Medium": { | ||
"": 2 | ||
} | ||
}, | ||
"sast": {} | ||
}, | ||
"violations": { | ||
"watches": [ | ||
"security-watch", | ||
"license-watch" | ||
], | ||
"sca": { | ||
"scan_ids": [ | ||
"711851ce-68c4-4dfd-7afb-c29737ebcb96" | ||
], | ||
"security": { | ||
"Medium": { | ||
"Undetermined": 1 | ||
}, | ||
"Unknown": { | ||
"Applicable": 1 | ||
} | ||
}, | ||
"license": { | ||
"High": { | ||
"": 1 | ||
} | ||
} | ||
}, | ||
"iac": {}, | ||
"secrets": { | ||
"Medium": { | ||
"": 2 | ||
} | ||
}, | ||
"sast": { | ||
"High": { | ||
"": 1 | ||
}, | ||
"Low": { | ||
"": 1 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
1,124 changes: 0 additions & 1,124 deletions
1,124
tests/testdata/output/dockerscan/docker_results.json
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
686 changes: 81 additions & 605 deletions
686
tests/testdata/output/dockerscan/docker_simple_json.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,44 @@ | ||
{ | ||
"scans": [ | ||
{ | ||
"target": "/var/folders/xv/th4cksxn7jv9wjrdnn1h4tj00000gq/T/jfrog.cli.temp.-1726210535-1985298017/image.tar", | ||
"name": "platform.jfrog.io/swamp-docker/swamp:latest", | ||
"vulnerabilities": { | ||
"sca": { | ||
"scan_ids": [ | ||
"27da9106-88ea-416b-799b-bc7d15783473" | ||
], | ||
"security": { | ||
"Critical": { | ||
"Not Applicable": 2, | ||
"Not Covered": 1, | ||
"Undetermined": 1 | ||
}, | ||
"Low": { | ||
"Applicable": 1, | ||
"Not Applicable": 1 | ||
}, | ||
"Unknown": { | ||
"Applicable": 2 | ||
} | ||
} | ||
}, | ||
"iac": {}, | ||
"secrets": { | ||
"Medium": { | ||
"": 3 | ||
} | ||
}, | ||
"sast": {} | ||
}, | ||
"violations": { | ||
"watches": [ | ||
"Security_watch_2" | ||
"scans": [ | ||
{ | ||
"target": "temp/folders/T/jfrog.cli.temp.-11-11/image.tar", | ||
"name": "platform.jfrog.io/swamp-docker/swamp:latest", | ||
"vulnerabilities": { | ||
"sca": { | ||
"scan_ids": [ | ||
"27da9106-88ea-416b-799b-bc7d15783473" | ||
], | ||
"sca": { | ||
"scan_ids": [ | ||
"27da9106-88ea-416b-799b-bc7d15783473" | ||
], | ||
"security": { | ||
"Critical": { | ||
"Undetermined": 1 | ||
} | ||
} | ||
}, | ||
"secrets": { | ||
"Medium": { | ||
"": 2 | ||
"security": { | ||
"Critical": { | ||
"Undetermined": 1 | ||
}, | ||
"Unknown": { | ||
"Applicable": 1 | ||
} | ||
} | ||
}, | ||
"secrets": { | ||
"Medium": { | ||
"Inactive": 1 | ||
} | ||
} | ||
}, | ||
"violations": { | ||
"watches": [ | ||
"security-watch", | ||
"watch" | ||
], | ||
"sca": { | ||
"scan_ids": [ | ||
"27da9106-88ea-416b-799b-bc7d15783473" | ||
] | ||
}, | ||
"secrets": { | ||
"Medium": { | ||
"Inactive": 1 | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.