mercedes-benz / sechub

SecHub provides a central API to test software with different security tools.
https://mercedes-benz.github.io/sechub/
MIT License
260 stars 63 forks source link

Ignore whitespaces when parsing github action scan types #3143

Closed hamidonos closed 4 months ago

hamidonos commented 4 months ago

Situation

When passing scan types as comma separated list with whitepaces the scan type is not correctly recognized because some scan types contain the whitespace

Wanted

scan-types: 'codeScan, secretScan' is parsed as ['codeScan', 'secretScan']

Solution

Sanitize the comma separated string