This repository has been archived by the owner on Oct 14, 2024. It is now read-only.
-
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.
feat: add effective scan config to assetScan annotations (#739)
* feat: add effective scan config to assetScan annotations * fix: missing header * test: use embed instead of multiline string * test: check JSON content in case of effective scan config annotation instead of exact string value * test: minor update * fix: overwrite effective scan config annotation if exist * style: append of cleanup effective scan annotation * Update pkg/cli/state/vmclarity.go Co-authored-by: Sam Betts <[email protected]> --------- Co-authored-by: Sam Betts <[email protected]>
- Loading branch information
1 parent
84c01b5
commit bec52d7
Showing
6 changed files
with
344 additions
and
5 deletions.
There are no files selected for viewing
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
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
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
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 |
---|---|---|
@@ -0,0 +1,88 @@ | ||
{ | ||
"sbom": { | ||
"Enabled": true, | ||
"AnalyzersList": [ | ||
"syft" | ||
], | ||
"Inputs": [ | ||
{ | ||
"StripPathFromResult": null, | ||
"Input": "test", | ||
"InputType": "dir" | ||
} | ||
], | ||
"MergeWith": null, | ||
"AnalyzersConfig": { | ||
"Registry": null, | ||
"Analyzer": { | ||
"OutputFormat": "", | ||
"AnalyzerList": [ | ||
"syft" | ||
], | ||
"Scope": "", | ||
"TrivyConfig": { | ||
"Timeout": 0, | ||
"CacheDir": "", | ||
"TempDir": "" | ||
} | ||
}, | ||
"Scanner": null, | ||
"LocalImageScan": false | ||
} | ||
}, | ||
"vulnerabilities": { | ||
"Enabled": false, | ||
"ScannersList": null, | ||
"Inputs": null, | ||
"InputFromSbom": false, | ||
"ScannersConfig": null | ||
}, | ||
"secrets": { | ||
"Enabled": false, | ||
"ScannersList": null, | ||
"StripInputPaths": false, | ||
"Inputs": null, | ||
"ScannersConfig": null | ||
}, | ||
"rootkits": { | ||
"Enabled": false, | ||
"ScannersList": null, | ||
"StripInputPaths": false, | ||
"Inputs": null, | ||
"ScannersConfig": null | ||
}, | ||
"malware": { | ||
"Enabled": false, | ||
"ScannersList": null, | ||
"StripInputPaths": false, | ||
"Inputs": null, | ||
"ScannersConfig": null | ||
}, | ||
"misconfiguration": { | ||
"enabled": false, | ||
"ScannersList": null, | ||
"StripInputPaths": false, | ||
"Inputs": null, | ||
"ScannersConfig": { | ||
"Lynis": { | ||
"InstallPath": "" | ||
} | ||
} | ||
}, | ||
"infofinder": { | ||
"enabled": false, | ||
"ScannersList": null, | ||
"StripInputPaths": false, | ||
"Inputs": null, | ||
"ScannersConfig": { | ||
"SSHTopology": {} | ||
} | ||
}, | ||
"exploits": { | ||
"enabled": false, | ||
"ScannersList": null, | ||
"Inputs": null, | ||
"InputFromVuln": false, | ||
"ScannersConfig": null | ||
} | ||
} |
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.