From 004e644afc6e0177ab29e40eed8d56b1bfc9dec7 Mon Sep 17 00:00:00 2001 From: juegge <64655256+juegge@users.noreply.github.com> Date: Mon, 13 Nov 2023 15:00:18 +0200 Subject: [PATCH 1/2] Use alpine based ScaResolver The ast-cli docker image is based on alpine linux. Hence, the you have to wget the musl version of Scaresolver (alpine version). Otherwise, it will not work. --- CxScaResolver/bitbucket-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CxScaResolver/bitbucket-pipelines.yml b/CxScaResolver/bitbucket-pipelines.yml index 2f91121..72a2f31 100644 --- a/CxScaResolver/bitbucket-pipelines.yml +++ b/CxScaResolver/bitbucket-pipelines.yml @@ -8,7 +8,7 @@ pipelines: default: - step: script: - - wget https://sca-downloads.s3.amazonaws.com/cli/latest/ScaResolver-linux64.tar.gz + - wget https://sca-downloads.s3.amazonaws.com/cli/latest/ScaResolver-musl64.tar.gz - tar -xzvf ScaResolver-linux64.tar.gz - rm -rf ScaResolver-linux64.tar.gz - >- From 95cfe477dcc10a93d7fcd1e8efd49f3030e07e16 Mon Sep 17 00:00:00 2001 From: juegge <64655256+juegge@users.noreply.github.com> Date: Mon, 13 Nov 2023 15:18:22 +0200 Subject: [PATCH 2/2] change filenames in the untar/rm command untar and rm the correct files --- CxScaResolver/bitbucket-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CxScaResolver/bitbucket-pipelines.yml b/CxScaResolver/bitbucket-pipelines.yml index 72a2f31..c1a762c 100644 --- a/CxScaResolver/bitbucket-pipelines.yml +++ b/CxScaResolver/bitbucket-pipelines.yml @@ -9,8 +9,8 @@ pipelines: - step: script: - wget https://sca-downloads.s3.amazonaws.com/cli/latest/ScaResolver-musl64.tar.gz - - tar -xzvf ScaResolver-linux64.tar.gz - - rm -rf ScaResolver-linux64.tar.gz + - tar -xzvf ScaResolver-musl64.tar.gz + - rm -rf ScaResolver-musl64.tar.gz - >- /app/bin/cx scan create