Sign in or sign up before continuing. Don't have an account yet? Register now to get started.
Register now

SAST job failing with multi-line variables

$ export SAST_VERSION=${SP_VERSION:-$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')}
$ if ! docker info &>/dev/null; then # collapsed multi-line command
$ printenv | grep -E '^(DOCKER_|CI|GITLAB_|FF_|HOME|PWD|OLDPWD|PATH|SHLVL|HOSTNAME)' | cut -d'=' -f1 | \ # collapsed multi-line command
$ docker run \ # collapsed multi-line command
docker: poorly formatted environment: variable 'Return of the Jedi' contains whitespaces.
See 'docker run --help'.
Uploading artifacts...
WARNING: gl-sast-report.json: no matching files    
ERROR: No files to upload                          
ERROR: Job failed: exit code 125

Possibly related to !18193 (merged)

Assignee Loading
Time tracking Loading