Skip to content

Dast container gives "Shell not found".

Dast job fails with:

Running with gitlab-runner 14.7.0 (98daeee0)
  on Gitlab-runner-AWS-Ohio LhPiuPe7
Resolving secrets 00:00
Preparing the "docker" executor 01:05
Using Docker executor with image registry.gitlab.com/security-products/dast:2 ...
Authenticating with credentials from job payload (GitLab Registry)
Pulling docker image registry.gitlab.com/security-products/dast:2 ...
Using docker image sha256:6e3172cd7661b841f1c25327f9827a3a42397c273b81a5ee3adaadffe9c0edd9 for registry.gitlab.com/security-products/dast:2 with digest registry.gitlab.com/security-products/dast@sha256:918fa5b8f436601d3814ee493690bc6505eefdf0112ba4a27f3ed6d1c62695a1 ...
Preparing environment 00:01
Running on runner-lhpiupe7-project-28392522-concurrent-0 via ip-172-31-7-129.us-east-2.compute.internal...
Getting source from Git repository 00:00
Skipping Git repository setup
Skipping Git checkout
Skipping Git submodules setup
Downloading artifacts 00:01
Downloading artifacts for gemnasium-maven-dependency_scanning (2326649259)...
Downloading artifacts from coordinator... ok        id=2326649259 responseStatus=200 OK token=amGsNUZz
Executing "step_script" stage of the job script 00:01
Using docker image sha256:6e3172cd7661b841f1c25327f9827a3a42397c273b81a5ee3adaadffe9c0edd9 for registry.gitlab.com/security-products/dast:2 with digest registry.gitlab.com/security-products/dast@sha256:918fa5b8f436601d3814ee493690bc6505eefdf0112ba4a27f3ed6d1c62695a1 ...
shell not found
Uploading artifacts for failed job 00:00
Uploading artifacts...
WARNING: gl-dast-report.json: no matching files    
ERROR: No files to upload                          
Cleaning up project directory and file based variables 00:00
ERROR: Job failed: exit code 1

gitlab-ci.yml

include:
  - template: Security/SAST.gitlab-ci.yml
  - template: DAST.gitlab-ci.yml
  - template: Security/Secret-Detection.gitlab-ci.yml
  - template: Security/Dependency-Scanning.gitlab-ci.yml
  - template: Security/License-Scanning.gitlab-ci.ym

    
stages:
  - build
  - test
  - deploy
  - dast




Hello_job1:
     stage: deploy
     tags:
       - CI
     script:
       - mvn clean package deploy -DmuleDeploy
     only:
       - main


dast:
  stage: dast
  dast_configuration:
    site_profile: "hello-site"
    scanner_profile: "Dast-scan-test"
 
Edited by Brie Carranza