Skip to content

Commit

Permalink
Merge pull request #1093 from jacobbednarz/add-sensitivity-level-for-…
Browse files Browse the repository at this point in the history
…overrides
  • Loading branch information
jacobbednarz authored Sep 29, 2022
2 parents 1f91230 + 6b92e1a commit 22f9286
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .changelog/1093.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
rulesets: add support for `sensitivity_level` to override all rule sensitivity
```
9 changes: 5 additions & 4 deletions rulesets.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,10 +407,11 @@ type RulesetRuleActionParametersHTTPHeader struct {
}

type RulesetRuleActionParametersOverrides struct {
Enabled *bool `json:"enabled,omitempty"`
Action string `json:"action,omitempty"`
Categories []RulesetRuleActionParametersCategories `json:"categories,omitempty"`
Rules []RulesetRuleActionParametersRules `json:"rules,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
Action string `json:"action,omitempty"`
SensitivityLevel string `json:"sensitivity_level,omitempty"`
Categories []RulesetRuleActionParametersCategories `json:"categories,omitempty"`
Rules []RulesetRuleActionParametersRules `json:"rules,omitempty"`
}

type RulesetRuleActionParametersCategories struct {
Expand Down

0 comments on commit 22f9286

Please sign in to comment.