Open itaywol opened 2 years ago
Something like so
{
"quiet":true, // Other configurations here
"rules": {
"https://github.com/aquasecurity/*": { // Supporting wildcards
"fail":{
"1.1.3": {
"result":"Failed"
},
"1.1.14": ["Failed","Unknown"] // Alternatively supporting couple of results
}
}
}
}
So everytime you run chain-bench against any repository in aquasecurity the following rules will be applied
Like that! will be great feature, we'll take it 🙏🏽
My idea here is creating a
.chain-benchrc | chain-bench.config.json
file that the repository will hold And upon running the cli in the context of that repository it will read that config file for any configuration for chain-benchLeveraging that config file, add
rules
key into the json with sub keyspass
andfail
those will hold assertions over the json output of chain-bench that will decide what will be the exit code.For now when I want to assert over the chain bench output (JSON format), I am doing it with
jq
orrego
.