debricked / cli

Debricked's command line interface. It brings open source security, compliance and health to your project via the command prompt.
MIT License
21 stars 9 forks source link

Output to standard error stream even on zero issues #242

Closed Mhbuur closed 2 months ago

Mhbuur commented 5 months ago

I'm using the Azure DevOps pipeline integration: https://github.com/debricked/cli/blob/main/examples/templates/Azure/azure-pipelines.yml

I added to the yaml definition that the task should fail on std error, hoping to catch issues this way: image

It seems that there is output to routed to stderr instead of stdout, which obviously now causes my pipeline to fail, but without any real reason: image

Could you change the output type?

For the record there are no issues in my project: image

sweoggy commented 5 months ago

Thanks, we will look into it!

Mhbuur commented 3 months ago

@sweoggy can you share anything on when or if this issue will be fixed?

sweoggy commented 2 months ago

We aim to look into this issue next week :) @Mhbuur

sweoggy commented 2 months ago

Hi again @Mhbuur! So after further investigation we realised the stderr output came from curl's progress meter, not the debricked CLI command itself. To fix your issue, please append sS after the -L flag, like so curl -LsS urlhere. We will update our templates accordingly

sweoggy commented 2 months ago

Templates were updated in #256, I will now close this issue. Feel free to re-open the issue if you you need further assistance :blush:

Mhbuur commented 2 months ago

Perfect, thanks - I can confirm it worked :-)