cloudsploit icon indicating copy to clipboard operation
cloudsploit copied to clipboard

Wildcard cannot be used in place of pluginId in suppression argument after recent changes

Open pbilyak opened this issue 1 year ago • 3 comments

After changes made in https://github.com/aquasecurity/cloudsploit/pull/2125 the next command (which also can be found in README.md) cannot be run as it's not possible to use wildcard in place of pluginId anymore:

# Suppress all us-east-1 region results
$ ./index.js --suppress *:us-east-1:*

Returns:

Error: Invalid pluginId in suppression: *. Must only contain letters and numbers and be between 1-255 characters.

pbilyak avatar Feb 13 '25 13:02 pbilyak

I have the same issue. Is there a workaround for this?

quentinkhoo avatar Mar 07 '25 07:03 quentinkhoo

We seem to be having the same exact issue

m-barthelemy avatar Mar 07 '25 07:03 m-barthelemy

As a workaround, I am using this to disable the new validation check in my CI/CD pipeline: sed -i '/validateSuppression(expr)/d' ./postprocess/suppress.js.

jdgregson avatar Mar 30 '25 09:03 jdgregson