doc/user/application_security/sast/gitlab_advanced_sast_troubleshooting.md
{{< details >}}
{{< /details >}}
When working with GitLab Advanced SAST, you might encounter the following issues.
If you've followed the optimization steps and your Advanced SAST scan is still running longer than expected, reach out to GitLab Support for further assistance with the following information:
To identify the GitLab Advanced SAST analyzer version:
gitlab-advanced-sast job.GitLab GitLab Advanced SAST analyzer.You should find the version at the end of line with that string. For example:
[INFO] [GitLab Advanced SAST] [2025-01-24T15:51:03Z] ▶ GitLab GitLab Advanced SAST analyzer v1.1.1
In this example, the version is 1.1.1.
To generate the trace.ctf artifact (in non-C/C++ projects), add the following to your .gitlab-ci.yml.
Set RUNNER_SCRIPT_TIMEOUT to at least 10 minutes shorter than timeout to ensure the artifact has
time to upload.
include:
- template: Jobs/SAST.gitlab-ci.yml
variables:
GITLAB_ADVANCED_SAST_ENABLED: 'true'
MEMTRACE: 'trace.ctf'
DISABLE_MULTI_CORE: true # Disable multi core when collecting memtrace
gitlab-advanced-sast:
artifacts:
paths:
- '**/trace.ctf' # Collects all trace.ctf files generated by this job
expire_in: 1 week # Sets retention for artifacts
when: always # Ensures artifact export even if the job fails
variables:
RUNNER_SCRIPT_TIMEOUT: 50m
timeout: 1h