-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(whitelist): Whitelist logic reformulated again #1061
fix(whitelist): Whitelist logic reformulated again #1061
Conversation
if [[ "${checked_value}" == *"${resource_value}"* ]]; then | ||
# To set WARNING flag checked_value have to include value of resource_value | ||
# If it is treated as only expanse (*[]*) will not detect regex like [:alpha:] | ||
if [[ "${checked_value}" =~ ${resource_value} ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This look good! Thanks for sorting it out :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're welcome !!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @wobblesprout
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job @n4ch04
🔝
Context
Current whitelisting logic did not detect whitelisted element if includes POSIX character classes
Description
Reformulate whitelisting logic to detect POSIX character classes into whitelisted element
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.