Update vendored AutoDevOps YML for latest SAST changes
This commit is contained in:
parent
89854139a4
commit
e19d45ddcf
1 changed files with 9 additions and 1 deletions
10
vendor/gitlab-ci-yml/Auto-DevOps.gitlab-ci.yml
vendored
10
vendor/gitlab-ci-yml/Auto-DevOps.gitlab-ci.yml
vendored
|
@ -321,7 +321,15 @@ production:
|
|||
# Extract "MAJOR.MINOR" from CI_SERVER_VERSION and generate "MAJOR-MINOR-stable"
|
||||
SAST_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
|
||||
|
||||
docker run --volume "$PWD:/code" \
|
||||
# Deprecation notice for CONFIDENCE_LEVEL variable
|
||||
if [ -z "$SAST_CONFIDENCE_LEVEL" -a "$CONFIDENCE_LEVEL" ]; then
|
||||
SAST_CONFIDENCE_LEVEL="$CONFIDENCE_LEVEL"
|
||||
echo "WARNING: CONFIDENCE_LEVEL is deprecated and MUST be replaced with SAST_CONFIDENCE_LEVEL"
|
||||
fi
|
||||
|
||||
docker run --env SAST_CONFIDENCE_LEVEL="${SAST_CONFIDENCE_LEVEL:-3}" \
|
||||
--env SAST_DISABLE_REMOTE_CHECKS="${SAST_DISABLE_REMOTE_CHECKS:-false}" \
|
||||
--volume "$PWD:/code" \
|
||||
--volume /var/run/docker.sock:/var/run/docker.sock \
|
||||
"registry.gitlab.com/gitlab-org/security-products/sast:$SAST_VERSION" /app/bin/run /code
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue