From 375a2b440661b958356580f2407b7ef0423456a4 Mon Sep 17 00:00:00 2001 From: Mike Hepburn Date: Mon, 20 Dec 2021 17:22:59 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=93=20#72,=20updates=20to=20roxctl=20c?= =?UTF-8?q?li=20=F0=9F=90=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/3-revenge-of-the-automated-testing/666-here-be-dragons.md | 2 +- docs/3-revenge-of-the-automated-testing/7a-jenkins.md | 2 +- docs/3-revenge-of-the-automated-testing/7b-tekton.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/3-revenge-of-the-automated-testing/666-here-be-dragons.md b/docs/3-revenge-of-the-automated-testing/666-here-be-dragons.md index 63cf9c84..dcde7144 100644 --- a/docs/3-revenge-of-the-automated-testing/666-here-be-dragons.md +++ b/docs/3-revenge-of-the-automated-testing/666-here-be-dragons.md @@ -183,7 +183,7 @@ Let's learn how to use the **roxctl** command line. We can run a **check** on our **pet-battle** image by doing: ```bash - roxctl image check --insecure-skip-tls-verify -e $ROX_ENDPOINT:443 --image quay.io/petbattle/pet-battle:latest --json | jq -c '.alerts[].policy | select ( .severity == "HIGH_SEVERITY" or .severity == "CRITICAL_SEVERITY" )' | jq . + roxctl image check --insecure-skip-tls-verify -e $ROX_ENDPOINT:443 --image quay.io/petbattle/pet-battle:latest -o json | jq -c '.alerts[].policy | select ( .severity == "HIGH_SEVERITY" or .severity == "CRITICAL_SEVERITY" )' | jq . ``` This returns a Policy error that should look something like this: diff --git a/docs/3-revenge-of-the-automated-testing/7a-jenkins.md b/docs/3-revenge-of-the-automated-testing/7a-jenkins.md index ad692c46..1b9426c0 100644 --- a/docs/3-revenge-of-the-automated-testing/7a-jenkins.md +++ b/docs/3-revenge-of-the-automated-testing/7a-jenkins.md @@ -70,7 +70,7 @@ sh ''' set +x export ROX_API_TOKEN=${ROX_CREDS_PSW} - ./roxctl image check --insecure-skip-tls-verify -e ${ROX_CREDS_USR}:443 --image image-registry.openshift-image-registry.svc:5000/${DESTINATION_NAMESPACE}/${APP_NAME}:${VERSION} --json + ./roxctl image check --insecure-skip-tls-verify -e ${ROX_CREDS_USR}:443 --image image-registry.openshift-image-registry.svc:5000/${DESTINATION_NAMESPACE}/${APP_NAME}:${VERSION} -o json ''' ``` diff --git a/docs/3-revenge-of-the-automated-testing/7b-tekton.md b/docs/3-revenge-of-the-automated-testing/7b-tekton.md index 3a40324a..b69af549 100644 --- a/docs/3-revenge-of-the-automated-testing/7b-tekton.md +++ b/docs/3-revenge-of-the-automated-testing/7b-tekton.md @@ -153,7 +153,7 @@ export NO_COLOR="True" curl -k -L -H "Authorization: Bearer $ROX_API_TOKEN" https://$ROX_ENDPOINT/api/cli/download/roxctl-linux --output roxctl > /dev/null;echo "Getting roxctl" chmod +x roxctl > /dev/null - ./roxctl image check --insecure-skip-tls-verify -e $ROX_ENDPOINT:443 --image $(params.IMAGE) --json + ./roxctl image check --insecure-skip-tls-verify -e $ROX_ENDPOINT:443 --image $(params.IMAGE) -o json if [ $? -eq 0 ]; then echo "🦕 no issues found 🦕"; exit 0;