dep-scan icon indicating copy to clipboard operation
dep-scan copied to clipboard

Better way of generating file names

Open prabhu opened this issue 2 years ago • 0 comments

Currently, file names are generated with a bunch of find and replace, which sometimes interferes with directory names. Eg, if the --reports-dir contains the word depscan, it gets changed to sbom :(

https://github.com/AppThreat/dep-scan/blob/master/depscan/cli.py#L357 https://github.com/AppThreat/dep-scan/blob/master/depscan/cli.py#L289

We need to change this behaviour and have better logic to generate file names per type.

prabhu avatar Dec 18 '22 10:12 prabhu