Wildcards in Suppression targetNames #2513
-
When configuring a suppression in ps-rule.yaml and setting a targetName, is it possible to supply a wildcard? |
Beta Was this translation helpful? Give feedback.
Answered by
BernieWhite
Nov 4, 2023
Replies: 1 comment 3 replies
-
@paulmccrady No. With the See: #1999 (comment) Instead of https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/ |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
paulmccrady
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@paulmccrady No. With the
suppression:
key wildcards are not supported. You could do this with a suppression group.See: #1999 (comment)
Instead of
endsWith
uselike
ormatch
.https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/
https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_SuppressionGroups/