SAST job failing on gitlab-org/gitlab

Summary

Our Category:SAST job is continuously failing on the https://gitlab.com/gitlab-org/gitlab/ project and should be investigated.

Additionally, our existing secure job configuration is copied from our templates and is likely to quickly become out of sync and should be updated: https://gitlab.com/gitlab-org/gitlab/-/blob/12-9-stable-ee/.gitlab/ci/reports.gitlab-ci.yml#L44, this may or may not be related.

Steps to reproduce

Run sast job, observe failures

Example Project

https://gitlab.com/gitlab-org/gitlab/-/jobs/480852229

What is the current bug behavior?

sast job fails to execute

What is the expected correct behavior?

sast job complets execution

Relevant logs and/or screenshots

https://gitlab.com/gitlab-org/gitlab/-/jobs/480852229

Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:env:info)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)