Discard stderr when executing commands
What does this MR do?
The analyzer currently processes the combined output of commands which it runs. This can cause malformed output to be processed, because stderr is typically not meant to be included in unix output streams. When helm outputs warnings (which are non-fatal), this can cause malformed yaml files to be created for analysis. (see: gitlab-org/gitlab#327912 (comment 1016735081))
What are the relevant issue numbers?
Does this MR meet the acceptance criteria?
-
Changelog entry added -
Documentation created/updated for GitLab EE, if necessary -
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Job definition updated, if necessary -
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer
Edited by Brian Williams