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
If the custom secret regex is invalid or bad formatted, the Kics should avoid running it and must display a default error message.
Actual Behavior
Kics is throwing a panic message in the CLI.
Steps to Reproduce the Problem
(Command line arguments and flags used)
Download the custom regex rules and sample attached to this bug report.
Open terminal.
Go to the Kics folder.
Scan a valid sample with "--secrets-regexes-path path-to-custom-regex-file.json", for example: kics scan -p samples\terraform-secret.tf --secrets-regexes-path samples/regex_rules_48_invalid_regex.json
cxlucas
changed the title
Custom Secret Regex (invalid) throwing a panic message
Custom Secret Regex (invalid regex) throwing a panic message
Oct 7, 2021
Expected Behavior
If the custom secret regex is invalid or bad formatted, the Kics should avoid running it and must display a default error message.
Actual Behavior
Kics is throwing a panic message in the CLI.
Steps to Reproduce the Problem
(Command line arguments and flags used)
kics scan -p samples\terraform-secret.tf --secrets-regexes-path samples/regex_rules_48_invalid_regex.json
Specifications
Attachments
samples.zip
The text was updated successfully, but these errors were encountered: