You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -298,8 +298,8 @@ Other fields are optional and can be seen in the example bellow of a file with a
298
298
severity: High # severity, can only be one of [Critical, High, Medium, Low, Info]
299
299
tags: # identifiers for the rule, tags can be used as values of --rule and --ignore-rule flags
300
300
- api-key
301
-
category: General # category of the rule, should be a string of type ruledefine.RuleCategory. Impacts cvss score
302
-
scoreRuleType: 4# can go from 4 to 0, 4 being most severe. For overrides, if Category is defined, ruleType also needs to be defined, or otherwise it will be considered 0. Impacts cvss score
301
+
category: General # category of the rule, should be a string of type ruledefine.RuleCategory. Can be omitted in custom rule, but if omitted and ruleId matches a default rule, the category will take the value of the category of that defaultRule. Impacts cvss score
302
+
scoreRuleType: 4# can go from 1 to 4, 4 being most severe. If omitted in rule it will take the value of 1. Impacts cvss score
303
303
disableValidation: false # if true, disables validity check for this rule, regardless of --validate flag
304
304
deprecated: false # if true, the rule will not be used in the scan, regardless of --rule flag
CategoryRuleCategory`json:"category" yaml:"category"`// used for ASPM
93
-
ScoreRuleTypeuint8`json:"scoreRuleType" yaml:"scoreRuleType"`// used for ASPM
92
+
CategoryRuleCategory`json:"category" yaml:"category"`// used for cvssScore
93
+
ScoreRuleTypeuint8`json:"scoreRuleType" yaml:"scoreRuleType"`// used for cvssScore
94
94
DisableValidationbool`json:"disableValidation" yaml:"disableValidation"`////nolint:lll // if true, validation checks will be skipped for this rule if any validation is possible
0 commit comments