From 53e20e6a9261b70859f45d0e38ebcc6259e65f30 Mon Sep 17 00:00:00 2001 From: filip-debricked <135233582+filip-debricked@users.noreply.github.com> Date: Tue, 3 Sep 2024 09:22:59 +0200 Subject: [PATCH] Adds silent and output error flags to curl command in templates (#256) --- README.FoD.md | 4 ++-- README.md | 4 ++-- .../Azure/azure-pipelines-private-maven-repository.yml | 2 +- examples/templates/Azure/azure-pipelines.yml | 2 +- examples/templates/Bitbucket/bitbucket-pipelines.yml | 2 +- examples/templates/BuildKite/pipeline.yml | 2 +- examples/templates/CircleCI/config.yml | 2 +- examples/templates/GitLab/gitlab-ci.yml | 2 +- examples/templates/Jenkins/Jenkinsfile | 4 ++-- examples/templates/Travis/travis.yml | 2 +- 10 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.FoD.md b/README.FoD.md index 7d74d9ed..fc698d6f 100644 --- a/README.FoD.md +++ b/README.FoD.md @@ -48,14 +48,14 @@ Check out the [releases](https://github.com/debricked/cli/releases/tag/release-v Below follow some common ways to install the CLI. ### Linux ```sh -curl -L https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked +curl -LsS https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked ``` ```sh ./debricked ``` ### Mac ```sh -curl -L https://github.com/debricked/cli/releases/download/release-v2/cli_macOS_arm64.tar.gz | tar -xz debricked +curl -LsS https://github.com/debricked/cli/releases/download/release-v2/cli_macOS_arm64.tar.gz | tar -xz debricked ``` ```sh ./debricked diff --git a/README.md b/README.md index 36c648f1..96383462 100644 --- a/README.md +++ b/README.md @@ -44,14 +44,14 @@ Check out the [releases](https://github.com/debricked/cli/releases/tag/release-v Below follow some common ways to install the CLI. ### Linux ```sh -curl -L https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked +curl -LsS https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked ``` ```sh ./debricked ``` ### Mac ```sh -curl -L https://github.com/debricked/cli/releases/download/release-v2/cli_macOS_arm64.tar.gz | tar -xz debricked +curl -LsS https://github.com/debricked/cli/releases/download/release-v2/cli_macOS_arm64.tar.gz | tar -xz debricked ``` ```sh ./debricked diff --git a/examples/templates/Azure/azure-pipelines-private-maven-repository.yml b/examples/templates/Azure/azure-pipelines-private-maven-repository.yml index 1ce498a5..4953afae 100644 --- a/examples/templates/Azure/azure-pipelines-private-maven-repository.yml +++ b/examples/templates/Azure/azure-pipelines-private-maven-repository.yml @@ -9,7 +9,7 @@ jobs: inputs: artifactsFeeds: - script: | - curl -L https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked + curl -LsS https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked ./debricked scan displayName: Debricked scan env: diff --git a/examples/templates/Azure/azure-pipelines.yml b/examples/templates/Azure/azure-pipelines.yml index 5dd63708..0440f33a 100644 --- a/examples/templates/Azure/azure-pipelines.yml +++ b/examples/templates/Azure/azure-pipelines.yml @@ -10,7 +10,7 @@ jobs: # artifactsFeeds: # Uncomment the above lines if you need to authenticate private maven registries - script: | - curl -L https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked + curl -LsS https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked ./debricked scan displayName: Debricked scan env: diff --git a/examples/templates/Bitbucket/bitbucket-pipelines.yml b/examples/templates/Bitbucket/bitbucket-pipelines.yml index aaac59b8..5472a4ed 100644 --- a/examples/templates/Bitbucket/bitbucket-pipelines.yml +++ b/examples/templates/Bitbucket/bitbucket-pipelines.yml @@ -9,7 +9,7 @@ definitions: - step: name: "Debricked Scan" script: - - curl -L https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked + - curl -LsS https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked - ./debricked scan services: - docker diff --git a/examples/templates/BuildKite/pipeline.yml b/examples/templates/BuildKite/pipeline.yml index eaa6a174..2a675048 100644 --- a/examples/templates/BuildKite/pipeline.yml +++ b/examples/templates/BuildKite/pipeline.yml @@ -1,5 +1,5 @@ steps: - label: ":shield: Debricked" command: - - curl -L https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked + - curl -LsS https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked - ./debricked scan diff --git a/examples/templates/CircleCI/config.yml b/examples/templates/CircleCI/config.yml index 0db41202..28cd57d5 100644 --- a/examples/templates/CircleCI/config.yml +++ b/examples/templates/CircleCI/config.yml @@ -6,7 +6,7 @@ jobs: - image: cimg/base:current steps: - checkout - - run: curl -L https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked + - run: curl -LsS https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked - run: ./debricked scan workflows: diff --git a/examples/templates/GitLab/gitlab-ci.yml b/examples/templates/GitLab/gitlab-ci.yml index cdec1ade..7827e899 100644 --- a/examples/templates/GitLab/gitlab-ci.yml +++ b/examples/templates/GitLab/gitlab-ci.yml @@ -3,5 +3,5 @@ stages: debricked: stage: scan script: - - curl -L https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked + - curl -LsS https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked - ./debricked scan diff --git a/examples/templates/Jenkins/Jenkinsfile b/examples/templates/Jenkins/Jenkinsfile index c0d280a0..6fe337f1 100644 --- a/examples/templates/Jenkins/Jenkinsfile +++ b/examples/templates/Jenkins/Jenkinsfile @@ -9,10 +9,10 @@ pipeline { stage('Debricked Scan') { steps { script { - sh 'curl -L https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked' + sh 'curl -LsS https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked' sh './debricked scan' } } } } -} \ No newline at end of file +} diff --git a/examples/templates/Travis/travis.yml b/examples/templates/Travis/travis.yml index f55d55c0..98ccd592 100644 --- a/examples/templates/Travis/travis.yml +++ b/examples/templates/Travis/travis.yml @@ -5,7 +5,7 @@ jobs: branch: "*" env: - DEBRICKED_TOKEN=${DEBRICKED_TOKEN} - before_install: curl -L https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked + before_install: curl -LsS https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked before_cache: - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock - rm -fr $HOME/.gradle/caches/*/plugin-resolution/