Skip to content

Commit

Permalink
Merge branch 'main' into process_body
Browse files Browse the repository at this point in the history
  • Loading branch information
M4tteoP authored Oct 31, 2024
2 parents 350b696 + 681787e commit 72a9621
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions internal/seclang/directives.go
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ func updateTargetBySingleID(id int, variables string, options *DirectiveOptions)
// It has two limitations: it cannot be used to change the ID or phase of a rule.
// Only the actions that can appear only once are overwritten.
// The actions that are allowed to appear multiple times in a list, will be appended to the end of the list.
// The following example demonstrates how `SecAuditEngine` is used:
// The following example demonstrates how `SecRuleUpdateActionById` is used:
// ```apache
// SecRuleUpdateActionById 12345 "deny,status:403"
// ```
Expand All @@ -1067,7 +1067,7 @@ func directiveSecRuleUpdateActionByID(options *DirectiveOptions) error {
if idsOrRangesLen < 2 {
return errors.New("syntax error: SecRuleUpdateActionById id \"ACTION1,ACTION2,...\"")
}
// The last element is expected to be the actions(s)
// The last element is expected to be the action(s)
actions := idsOrRanges[idsOrRangesLen-1]
for _, idOrRange := range idsOrRanges[:idsOrRangesLen-1] {
if idx := strings.Index(idOrRange, "-"); idx == -1 {
Expand Down
7 changes: 2 additions & 5 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:best-practices"
],
"constraints": {
"go": "1.22"
}
"local>corazawaf/renovate-config"
]
}

0 comments on commit 72a9621

Please sign in to comment.