Closed rgreinho closed 2 years ago
Before:
[
{
"ID": "1.1.3",
"Name": "Ensure any change to code receives approval of two strongly authenticated users",
"Descrition": "Ensure that every code change is reviewed and approved by two authorized contributors who are strongly authenticated.",
"Remediation": "An organization can protect specific code branches β for example, the \"main\" branch which often is the version deployed to production β by setting protection rules. These rules secure your code repository from unwanted or unauthorized changes. You may set requirements for any code change to that branch, and thus specify a minimum number of reviewers required to approve a change.",
"Result": "Failed",
"Reason": "",
"Url": "https://avd.aquasec.com/compliance/softwaresupplychain/cis-1.0/cis-1.0-sourcecode/1.1"
}
]
After:
[
{
"ID": "1.1.3",
"Name": "Ensure any change to code receives approval of two strongly authenticated users",
"Descrition": "Ensure that every code change is reviewed and approved by two authorized contributors who are strongly authenticated.",
"Remediation": "An organization can protect specific code branches β for example, the \"main\" branch which often is the version deployed to production β by setting protection rules. These rules secure your code repository from unwanted or unauthorized changes. You may set requirements for any code change to that branch, and thus specify a minimum number of reviewers required to approve a change.",
"Result": "Failed",
"Reason": "",
"Url": "https://avd.aquasec.com/compliance/softwaresupplychain/cis-1.0/cis-1.0-sourcecode/1.1"
}
]
Side comment, while re-reading the issue, I saw a typo in the struct: "Descrition" -> "Description".
Ref: https://github.com/aquasecurity/chain-bench/blob/main/internal/printer/helpers.go#L25=
Hi, @rgreinho please make sure you branch is updated and then we'll mergeππ½
Updates the helper function serializing the data to automatically indent the file with 2 spaces.