chore(deps): Update defsec to v0.92.0 (#5068)

* chore(deps): Update defsec to v0.92.0

* update tests

* update integration tests
This commit is contained in:
simar7
2023-08-30 14:43:08 -06:00
committed by GitHub
parent d4ca3cce21
commit 07f7e9853b
6 changed files with 125 additions and 124 deletions

View File

@@ -38,7 +38,7 @@ const expectedS3ScanResult = `{
"Type": "cloud",
"MisconfSummary": {
"Successes": 1,
"Failures": 9,
"Failures": 8,
"Exceptions": 0
},
"Misconfigurations": [
@@ -114,30 +114,6 @@ const expectedS3ScanResult = `{
}
}
},
{
"Type": "AWS",
"ID": "AVD-AWS-0089",
"AVDID": "AVD-AWS-0089",
"Title": "S3 Bucket does not have logging enabled.",
"Description": "Buckets should have logging enabled so that access can be audited.",
"Message": "Bucket does not have logging enabled",
"Resolution": "Add a logging block to the resource to enable access logging",
"Severity": "MEDIUM",
"PrimaryURL": "https://avd.aquasec.com/misconfig/avd-aws-0089",
"References": [
"https://avd.aquasec.com/misconfig/avd-aws-0089"
],
"Status": "FAIL",
"Layer": {},
"CauseMetadata": {
"Resource": "arn:aws:s3:::examplebucket",
"Provider": "aws",
"Service": "s3",
"Code": {
"Lines": null
}
}
},
{
"Type": "AWS",
"ID": "AVD-AWS-0090",
@@ -342,7 +318,7 @@ const expectedCustomScanResult = `{
"Type": "cloud",
"MisconfSummary": {
"Successes": 1,
"Failures": 9,
"Failures": 8,
"Exceptions": 0
},
"Misconfigurations": [
@@ -418,30 +394,6 @@ const expectedCustomScanResult = `{
}
}
},
{
"Type": "AWS",
"ID": "AVD-AWS-0089",
"AVDID": "AVD-AWS-0089",
"Title": "S3 Bucket does not have logging enabled.",
"Description": "Buckets should have logging enabled so that access can be audited.",
"Message": "Bucket does not have logging enabled",
"Resolution": "Add a logging block to the resource to enable access logging",
"Severity": "MEDIUM",
"PrimaryURL": "https://avd.aquasec.com/misconfig/avd-aws-0089",
"References": [
"https://avd.aquasec.com/misconfig/avd-aws-0089"
],
"Status": "FAIL",
"Layer": {},
"CauseMetadata": {
"Resource": "arn:aws:s3:::examplebucket",
"Provider": "aws",
"Service": "s3",
"Code": {
"Lines": null
}
}
},
{
"Type": "AWS",
"ID": "AVD-AWS-0090",
@@ -720,7 +672,7 @@ const expectedS3AndCloudTrailResult = `{
"Type": "cloud",
"MisconfSummary": {
"Successes": 1,
"Failures": 9,
"Failures": 8,
"Exceptions": 0
},
"Misconfigurations": [
@@ -796,30 +748,6 @@ const expectedS3AndCloudTrailResult = `{
}
}
},
{
"Type": "AWS",
"ID": "AVD-AWS-0089",
"AVDID": "AVD-AWS-0089",
"Title": "S3 Bucket does not have logging enabled.",
"Description": "Buckets should have logging enabled so that access can be audited.",
"Message": "Bucket does not have logging enabled",
"Resolution": "Add a logging block to the resource to enable access logging",
"Severity": "MEDIUM",
"PrimaryURL": "https://avd.aquasec.com/misconfig/avd-aws-0089",
"References": [
"https://avd.aquasec.com/misconfig/avd-aws-0089"
],
"Status": "FAIL",
"Layer": {},
"CauseMetadata": {
"Resource": "arn:aws:s3:::examplebucket",
"Provider": "aws",
"Service": "s3",
"Code": {
"Lines": null
}
}
},
{
"Type": "AWS",
"ID": "AVD-AWS-0090",