diff --git a/README.md b/README.md index 552b8c0..c84a583 100644 --- a/README.md +++ b/README.md @@ -42,19 +42,18 @@ The Boost Security API token secret. **NOTE**: We recommend you not put the API token directly in your pipeline file. Instead, it should be exposed via a **secret**. -### `CI_DOCKER_PROXY` (Optional, string) +### `BOOST_CLI_VERSION` (Optional, string) + +Overrides the cli version to download when performing scans. If undefined, +this will default to pulling "1". + +### `BOOST_DOCKER_PROXY` (Optional, string) Enable or disable the gitlab dependency proxy for docker images. May be set to one of the following values: -- disabled: disable the proxy (default) - group: enable the group proxy - direct: enable the direct proxy -### `BOOST_CLI_VERSION` (Optional, string) - -Overrides the cli version to download when performing scans. If undefined, -this will default to pulling "1". - ### `BOOST_IGNORE_FAILURE` (Optional, boolean string, default false) Ignore any non-zero exit status and always return a success. diff --git a/scanner.yml b/scanner.yml index 68c42aa..8b7b04c 100644 --- a/scanner.yml +++ b/scanner.yml @@ -49,9 +49,9 @@ fi done - | - if [ "${CI_DOCKER_PROXY:-}" == "group" ]; then + if [ "${BOOST_DOCKER_PROXY:-}" == "group" ]; then export CI_DOCKER_PROXY="${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}" - elif [ "${CI_DOCKER_PROXY:-}" == "direct" ]; then + elif [ "${BOOST_DOCKER_PROXY:-}" == "direct" ]; then export CI_DOCKER_PROXY="${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}" fi