Fix PBA response in case of unconfigured endpoint

1 job for master in 1 minute and 23 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Test
failed #57203
allowed to fail
code_quality

00:01:23

 
Name Stage Failure
failed
code_quality Test
Skipping Git submodules setup
$ export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
$ docker run --env SOURCE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
docker: error during connect: Post http://docker:2375/v1.40/containers/create: dial tcp: lookup docker on 8.8.8.8:53: no such host.
See 'docker run --help'.
Uploading artifacts...
WARNING: gl-code-quality-report.json: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 125