forked from Checkmarx/kics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into kics-1145
- Loading branch information
Showing
287 changed files
with
9,482 additions
and
11,979 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
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
24 changes: 24 additions & 0 deletions
24
assets/queries/cloudFormation/aws/cloudfront_without_waf/test/positive3.yaml
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,24 @@ | ||
AWSTemplateFormatVersion: 2010-09-09 | ||
Resources: | ||
cloudfrontdistribution: | ||
Type: AWS::CloudFront::Distribution | ||
Properties: | ||
DistributionConfig: | ||
Enabled: true | ||
CacheBehaviors: | ||
- LambdaFunctionAssociations: | ||
- EventType: string-value | ||
LambdaFunctionARN: string-value | ||
DefaultCacheBehavior: | ||
LambdaFunctionAssociations: | ||
- EventType: string-value | ||
LambdaFunctionARN: string-value | ||
IPV6Enabled: boolean-value | ||
Origins: | ||
- CustomOriginConfig: | ||
OriginKeepaliveTimeout: integer-value | ||
OriginReadTimeout: integer-value | ||
WebACLId: "" | ||
Tags: | ||
- Key: string-value | ||
Value: string-value |
47 changes: 47 additions & 0 deletions
47
assets/queries/cloudFormation/aws/cloudfront_without_waf/test/positive4.json
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,47 @@ | ||
{ | ||
"AWSTemplateFormatVersion": "2010-09-09T00:00:00Z", | ||
"Resources": { | ||
"cloudfrontdistribution": { | ||
"Type": "AWS::CloudFront::Distribution", | ||
"Properties": { | ||
"DistributionConfig": { | ||
"Enabled": true, | ||
"CacheBehaviors": [ | ||
{ | ||
"LambdaFunctionAssociations": [ | ||
{ | ||
"EventType": "string-value", | ||
"LambdaFunctionARN": "string-value" | ||
} | ||
] | ||
} | ||
], | ||
"DefaultCacheBehavior": { | ||
"LambdaFunctionAssociations": [ | ||
{ | ||
"EventType": "string-value", | ||
"LambdaFunctionARN": "string-value" | ||
} | ||
] | ||
}, | ||
"IPV6Enabled": "boolean-value", | ||
"Origins": [ | ||
{ | ||
"CustomOriginConfig": { | ||
"OriginKeepaliveTimeout": "integer-value", | ||
"OriginReadTimeout": "integer-value" | ||
} | ||
} | ||
], | ||
"WebACLId": "" | ||
}, | ||
"Tags": [ | ||
{ | ||
"Value": "string-value", | ||
"Key": "string-value" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
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
42 changes: 42 additions & 0 deletions
42
assets/queries/openAPI/general/maximum_length_undefined/test/negative7.json
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,42 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "Simple API Overview", | ||
"version": "1.0.0", | ||
"contact": { | ||
"name": "contact", | ||
"url": "https://www.google.com/", | ||
"email": "[email protected]" | ||
} | ||
}, | ||
"paths": { | ||
"/": { | ||
"get": { | ||
"responses": { | ||
"200": { | ||
"description": "200 response", | ||
"schema": { | ||
"discriminator": "petType", | ||
"additionalProperties": false, | ||
"properties": { | ||
"code": { | ||
"type": "string", | ||
"format": "int32", | ||
"pattern": "[a-z0-9-]" | ||
}, | ||
"message": { | ||
"type": "string", | ||
"pattern": "[a-z]{3}" | ||
} | ||
}, | ||
"required": [ | ||
"petType" | ||
], | ||
"type": "object" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
assets/queries/openAPI/general/maximum_length_undefined/test/negative8.json
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,42 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "Simple API Overview", | ||
"version": "1.0.0", | ||
"contact": { | ||
"name": "contact", | ||
"url": "https://www.google.com/", | ||
"email": "[email protected]" | ||
} | ||
}, | ||
"paths": { | ||
"/": { | ||
"get": { | ||
"responses": { | ||
"200": { | ||
"description": "200 response", | ||
"schema": { | ||
"discriminator": "petType", | ||
"additionalProperties": false, | ||
"properties": { | ||
"code": { | ||
"type": "string", | ||
"format": "int32", | ||
"pattern": "[a-z0-9-]?" | ||
}, | ||
"message": { | ||
"type": "string", | ||
"pattern": "[a-z]\\{2,\\}" | ||
} | ||
}, | ||
"required": [ | ||
"petType" | ||
], | ||
"type": "object" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
assets/queries/openAPI/general/maximum_length_undefined/test/positive7.json
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,42 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "Simple API Overview", | ||
"version": "1.0.0", | ||
"contact": { | ||
"name": "contact", | ||
"url": "https://www.google.com/", | ||
"email": "[email protected]" | ||
} | ||
}, | ||
"paths": { | ||
"/": { | ||
"get": { | ||
"responses": { | ||
"200": { | ||
"description": "200 response", | ||
"schema": { | ||
"discriminator": "petType", | ||
"additionalProperties": false, | ||
"properties": { | ||
"code": { | ||
"type": "string", | ||
"format": "int32", | ||
"pattern": "[a-z0-9-]*" | ||
}, | ||
"message": { | ||
"type": "string", | ||
"pattern": "[a-z]{3,}" | ||
} | ||
}, | ||
"required": [ | ||
"petType" | ||
], | ||
"type": "object" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
assets/queries/openAPI/general/maximum_length_undefined/test/positive8.json
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,42 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "Simple API Overview", | ||
"version": "1.0.0", | ||
"contact": { | ||
"name": "contact", | ||
"url": "https://www.google.com/", | ||
"email": "[email protected]" | ||
} | ||
}, | ||
"paths": { | ||
"/": { | ||
"get": { | ||
"responses": { | ||
"200": { | ||
"description": "200 response", | ||
"schema": { | ||
"discriminator": "petType", | ||
"additionalProperties": false, | ||
"properties": { | ||
"code": { | ||
"type": "string", | ||
"format": "int32", | ||
"pattern": "[a-z0-9-]{2,3}" | ||
}, | ||
"message": { | ||
"type": "string", | ||
"pattern": "[a-z]+" | ||
} | ||
}, | ||
"required": [ | ||
"petType" | ||
], | ||
"type": "object" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.