component-detection icon indicating copy to clipboard operation
component-detection copied to clipboard

Is there a way to have scan manifest printed to stdout ?

Open sbs2001 opened this issue 3 years ago • 3 comments

This would make https://github.com/microsoft/component-detection/pull/220 far more usable.

sbs2001 avatar Aug 30 '22 17:08 sbs2001

Not currently. We print a summary to stdout, but I can see why you'd want just the manifest. It means you don't have to mount a volume to the container.

JamieMagee avatar Aug 30 '22 22:08 JamieMagee

Yes exactly. This would also make it easy to use the tool in scripts.

sbs2001 avatar Aug 31 '22 16:08 sbs2001

For now I'm using this hacky way to acheive this:

docker run -v /app:/scan ms_cd scan --Verbosity=Quiet --SourceDirectory /scan --ManifestFile=/dev/stdout 

sbs2001 avatar Aug 31 '22 16:08 sbs2001