diff --git a/sdk/templates/ci_staging.gitlab-ci.yml b/sdk/templates/ci_staging.gitlab-ci.yml index 736a85e18925b6b513d5e40a1e00de670d299fcd..2d41adf109e9de07d03db4d5186088e9b4f649b3 100644 --- a/sdk/templates/ci_staging.gitlab-ci.yml +++ b/sdk/templates/ci_staging.gitlab-ci.yml @@ -31,22 +31,11 @@ variables: staging_secrets_in_repo: stage: staging_secrets_in_repo - # script: - # - | - # pip install trufflehog - # cd ../ - # trufflehog filesystem capif --exclude-paths capif/cicd/exclusions --max-depth 5 script: - | - set -euo pipefail - - TRUF_VER="v3.82.0" - ARCH="linux_amd64" - curl -sSL -o /tmp/trufflehog.tgz "https://github.com/trufflesecurity/trufflehog/releases/download/${TRUF_VER}/trufflehog_${TRUF_VER#v}_${ARCH}.tar.gz" - tar -xzf /tmp/trufflehog.tgz -C /usr/local/bin trufflehog - trufflehog --version - - trufflehog filesystem capif --exclude-paths cicd/exclusions --max-depth 5 + pip install trufflehog + cd ../ + trufflehog capif --exclude_paths capif/cicd/exclusions --max_depth=5 <<: *staging_common # define the process to do linting code: ruff