Hi, help me with configuration Advanced SAST
I have self-hosted Ultimate version and want to enable Advanced SAST
And have error in pipeline
Problem to solve
Runner Logs
$ /analyzer run
[INFO] [GitLab Advanced SAST] [2024-09-06T12:45:22Z] GitLab GitLab Advanced SAST analyzer v1.0.10
[INFO] [GitLab Advanced SAST] [2024-09-06T12:45:22Z] Detecting project
[INFO] [GitLab Advanced SAST] [2024-09-06T12:45:22Z] Analyzer will attempt to analyze all projects in the repository
[INFO] [GitLab Advanced SAST] [2024-09-06T12:45:22Z] Loading ruleset for /builds/d.sidorov/test-integration
[WARN] [GitLab Advanced SAST] [2024-09-06T12:45:22Z] /builds/me/test-integration/.gitlab/sast-ruleset.toml not found, ruleset customization will be disabled.
[INFO] [GitLab Advanced SAST] [2024-09-06T12:45:22Z] Running analyzer
[INFO] [GitLab Advanced SAST] [2024-09-06T12:45:22Z] isFeatureFlagEnabled: true
[INFO] [GitLab Advanced SAST] [2024-09-06T12:45:22Z] Error: isCITokenValid(resp.StatusCode):
[FATA] [GitLab Advanced SAST] [2024-09-06T12:45:22Z] Error: Not authorized to run Gitlab Advanced SAST Analyzer
Uploading artifacts for failed job
00:01
Uploading artifacts…
WARNING: gl-sast-report.json: no matching files. Ensure that the artifact path is relative to the working directory (/builds/me/test-integration)
ERROR: No files to upload
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: exit code 1
Configuration
My .gitlab-ci.yml
include:
- template: Jobs/SAST.gitlab-ci.yml
variables:
GITLAB_ADVANCED_SAST_ENABLED: ‘true’
Versions
Self-managed 17.3.1 Ultimate