Running with gitlab-runner 13.2.0 (353dd94e)  on global-shared-gitlab-runner-74d5bd4795-j8zps oFz8WHMZ section_start:1602707209:prepare_executor Preparing the "kubernetes" executor Using Kubernetes namespace: gitlab-runner Using Kubernetes executor with image ${GITLAB_INTERNAL_REGISTRY}/ironbank-tools/ironbank-pipeline/jenkins-oscap-agent:1.1 ... section_end:1602707209:prepare_executor section_start:1602707209:prepare_script Preparing environment Waiting for pod gitlab-runner/runner-ofz8whmz-project-515-concurrent-3vh8dx to be running, status is Pending Running on runner-ofz8whmz-project-515-concurrent-3vh8dx via global-shared-gitlab-runner-74d5bd4795-j8zps... section_end:1602707212:prepare_script section_start:1602707212:get_sources Getting source from Git repository Fetching changes with git depth set to 50... Initialized empty Git repository in /builds/dsop/opensource/mbtest/mountebank/.git/ Created fresh repository. Checking out d88d7d85 as initial-development... Skipping Git submodules setup section_end:1602707213:get_sources section_start:1602707213:download_artifacts Downloading artifacts Downloading artifacts for build (444603)... Downloading artifacts from coordinator... ok  id=444603 responseStatus=200 OK token=QU-b9TfW Downloading artifacts for load scripts (444597)... Downloading artifacts from coordinator... ok  id=444597 responseStatus=200 OK token=FxCLL75g section_end:1602707217:download_artifacts section_start:1602707217:step_script Executing "step_script" stage of the job script $ "${PIPELINE_REPO_DIR}/stages/scanning/anchore-run.sh" WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly. WARNING: The directory '/home/jenkins/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Collecting anchorecli Downloading anchorecli-0.8.2.tar.gz (40 kB) Collecting Click==7.0 Downloading Click-7.0-py2.py3-none-any.whl (81 kB) Collecting prettytable==0.7.2 Downloading prettytable-0.7.2.tar.bz2 (21 kB) Requirement already satisfied, skipping upgrade: python-dateutil==2.8.1 in /usr/local/lib/python3.6/site-packages (from anchorecli) (2.8.1) Collecting PyYAML==5.3.1 Downloading PyYAML-5.3.1.tar.gz (269 kB) Collecting requests==2.23.0 Downloading requests-2.23.0-py2.py3-none-any.whl (58 kB) Collecting six==1.14.0 Downloading six-1.14.0-py2.py3-none-any.whl (10 kB) Collecting urllib3==1.25.9 Downloading urllib3-1.25.9-py2.py3-none-any.whl (126 kB) Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in /home/jenkins/.local/lib/python3.6/site-packages (from requests==2.23.0->anchorecli) (2020.6.20) Requirement already satisfied, skipping upgrade: idna<3,>=2.5 in /home/jenkins/.local/lib/python3.6/site-packages (from requests==2.23.0->anchorecli) (2.10) Requirement already satisfied, skipping upgrade: chardet<4,>=3.0.2 in /usr/local/lib/python3.6/site-packages (from requests==2.23.0->anchorecli) (3.0.4) Building wheels for collected packages: anchorecli, prettytable, PyYAML Building wheel for anchorecli (setup.py): started Building wheel for anchorecli (setup.py): finished with status 'done' Created wheel for anchorecli: filename=anchorecli-0.8.2-py3-none-any.whl size=46487 sha256=44b03d24ab0c78aa65d3e5cdb10723588090a04eba496e1a2fbe2a06136d6056 Stored in directory: /tmp/pip-ephem-wheel-cache-p5utnufv/wheels/d4/ef/0d/366a549fddc7fc4032a7a9493859c9b13c7de0dd91edd16897 Building wheel for prettytable (setup.py): started Building wheel for prettytable (setup.py): finished with status 'done' Created wheel for prettytable: filename=prettytable-0.7.2-py3-none-any.whl size=13700 sha256=00ad993331bd54b0baa87a044031fef67995aa47102c6aa99943724ef7af7b25 Stored in directory: /tmp/pip-ephem-wheel-cache-p5utnufv/wheels/90/15/c3/5f28b42ae9c81638570b8b7ed654e0f98c5fdc08875869511b Building wheel for PyYAML (setup.py): started Building wheel for PyYAML (setup.py): finished with status 'done' Created wheel for PyYAML: filename=PyYAML-5.3.1-cp36-cp36m-linux_x86_64.whl size=44619 sha256=29fb06ba3fe1c2f154c11564b3215bb16da03e03fcfcda12aa4094a4933bc5c3 Stored in directory: /tmp/pip-ephem-wheel-cache-p5utnufv/wheels/e5/9d/ad/2ee53cf262cba1ffd8afe1487eef788ea3f260b7e6232a80fc Successfully built anchorecli prettytable PyYAML Installing collected packages: Click, prettytable, PyYAML, urllib3, requests, six, anchorecli Attempting uninstall: urllib3 Found existing installation: urllib3 1.25.10 Uninstalling urllib3-1.25.10: Successfully uninstalled urllib3-1.25.10 Attempting uninstall: requests Found existing installation: requests 2.24.0 Uninstalling requests-2.24.0: Successfully uninstalled requests-2.24.0 Attempting uninstall: six Found existing installation: six 1.15.0 Uninstalling six-1.15.0: Successfully uninstalled six-1.15.0 WARNING: The script anchore-cli is installed in '/home/jenkins/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Successfully installed Click-7.0 PyYAML-5.3.1 anchorecli-0.8.2 prettytable-0.7.2 requests-2.23.0 six-1.14.0 urllib3-1.25.9 Image Digest: sha256:0e0b6a090f166e9117de33c82c157a734a32a98e53c582103e0f19b9ba2548fd Parent Digest: sha256:0e0b6a090f166e9117de33c82c157a734a32a98e53c582103e0f19b9ba2548fd Analysis Status: not_analyzed Image Type: docker Analyzed At: None Image ID: b93f4caf91d36c06eece3433893ea1cd74b27921f00c51ad58c997a72a52661a Dockerfile Mode: Actual Distro: None Distro Version: None Size: None Architecture: None Layer Count: None Full Tag: registry1.dsop.io/ironbank-staging/opensource/mbtest/mountebank:2.3.2-54951 Tag Detected At: 2020-10-14T20:27:02Z Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2399 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2394 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2388 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2383 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2377 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2372 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2366 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2361 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2355 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2349 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2344 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2338 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2333 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2327 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2322 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2316 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2311 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2305 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2300 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2294 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2289 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2283 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2278 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2272 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2267 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2261 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2256 Status: analyzing Waiting 5.0 seconds for next retry. Total timeout remaining: 2250 Image Digest: sha256:0e0b6a090f166e9117de33c82c157a734a32a98e53c582103e0f19b9ba2548fd Parent Digest: sha256:0e0b6a090f166e9117de33c82c157a734a32a98e53c582103e0f19b9ba2548fd Analysis Status: analyzed Image Type: docker Analyzed At: 2020-10-14T20:29:36Z Image ID: b93f4caf91d36c06eece3433893ea1cd74b27921f00c51ad58c997a72a52661a Dockerfile Mode: Actual Distro: rhel Distro Version: 8.2 Size: 337315840 Architecture: amd64 Layer Count: 5 Full Tag: registry1.dsop.io/ironbank-staging/opensource/mbtest/mountebank:2.3.2-54951 Tag Detected At: 2020-10-14T20:27:02Z INFO: Log level set to info Getting vulnerability results DEBUG: Fetching [MASKED]images/by_id/b93f4caf91d36c06eece3433893ea1cd74b27921f00c51ad58c997a72a52661a/vuln/all DEBUG: Got response from Anchore. Testing if valid json DEBUG: Json is valid DEBUG: Fetching [MASKED]query/vulnerabilities?id=VULNDB-238614 DEBUG: Got response from Anchore. Testing if valid json DEBUG: Json is valid DEBUG: Writing to ci-artifacts/scan-results/anchore/anchore_security.json Getting compliance results DEBUG: Fetching [MASKED]images/by_id/b93f4caf91d36c06eece3433893ea1cd74b27921f00c51ad58c997a72a52661a/check?tag=registry1.dsop.io/ironbank-staging/opensource/mbtest/mountebank:2.3.2-54951&detail=true DEBUG: Got response from Anchore. Testing if valid json DEBUG: Json is valid DEBUG: Writing to ci-artifacts/scan-results/anchore/anchore_api_gates_full.json DEBUG: Writing to ci-artifacts/scan-results/anchore/anchore_gates.json Getting Anchore version DEBUG: Fetching [MASKED]version DEBUG: Got response from Anchore. Testing if valid json DEBUG: Json is valid DEBUG: Writing to ci-artifacts/scan-results/anchore/anchore-version.txt section_end:1602707380:step_script section_start:1602707380:upload_artifacts_on_success Uploading artifacts for successful job Uploading artifacts... ci-artifacts/scan-results/anchore/: found 5 matching files and directories Uploading artifacts as "archive" to coordinator... ok id=444607 responseStatus=201 Created token=_1udKzx2 section_end:1602707381:upload_artifacts_on_success Job succeeded