Skip SCS9999 warning and check len before accessing warning slice
What does this MR do?
Fixes gitlab-org/gitlab#321225 (closed). Pipelines started failing yesterday when SCS9999 started popping up for some reason that has yet to be determined.
- Failing pipeline: https://gitlab.com/gitlab-org/security-products/analyzers/security-code-scan/-/pipelines/254698077
- Passing pipeline: https://gitlab.com/gitlab-org/security-products/analyzers/security-code-scan/-/pipelines/253878179
I suspect this has something to do with the release of security code scan 5.0.0 that was released yesterday but after doing some googling/github searching I was unable to find the warning message.
What are the relevant issue numbers?
gitlab-org/gitlab#321225 (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 Lucas Charles