Fix "x is a directory" error on output
What does this MR do?
Fix "x is a directory" error on output.
See https://gitlab.com/gitlab-org/security-products/tests/js-npm/-/jobs/1795141221#L44 for instance:
[ERRO] [Retire.js] [2021-11-18T07:41:33Z] ▶ read /builds/gitlab-org/security-products/tests/js-npm: is a directory
Uploading artifacts for successful job
00:02
Uploading artifacts...
What are the relevant issue numbers?
Similar to gemnasium-maven's gitlab-org/gitlab#328051 (closed)
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 Fabien Catteau