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
fix: update go version and custom rules regexTarget documentation (#373)
<!--
Thanks for contributing to 2ms by offering a pull request.
-->
Closes #
**Proposed Changes**
Update go version and custom rules regexTarget documentation
<!--
Please describe the big picture of your changes here. If it fixes a bug
or resolves a feature request, be sure to link to that issue.
-->
**Checklist**
- [ ] I covered my changes with tests.
- [ ] I Updated the documentation that is affected by my changes:
- [ ] Change in the CLI arguments
- [ ] Change in the configuration file
I submit this contribution under the Apache-2.0 license.
Copy file name to clipboardExpand all lines: README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -372,7 +372,10 @@ Other fields are optional and can be seen in the example bellow of a file with a
372
372
allowLists: # allowed values to ignore if matched
373
373
- description: Allowlist for Custom Rule
374
374
matchCondition: OR # Can be AND or OR. determines whether all criteria in the allowList must match. Defaults to OR if not specified
375
-
regexTarget: match - # Can be match or line. Determines whether the regexes in allowList are tested against the rule.Regex match or the full line being scanned. Defaults to "match" if not specified
375
+
regexTarget: match # Specifies what to test allowList regexes against. Options: 'match', 'line', or empty/omitted.
376
+
# - 'match': test against the full rule.Regex match
377
+
# - 'line': test against the entire line where the secret was found
378
+
# - empty/omitted: test against the secret itself (which is the first capture group from rule.Regex, or the group specified by rule.secretGroup if defined)
0 commit comments