Skip to content

Commit

Permalink
🐓 #72, updates to roxctl cli 🐓
Browse files Browse the repository at this point in the history
  • Loading branch information
eformat committed Dec 20, 2021
1 parent bb04245 commit 375a2b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion docs/3-revenge-of-the-automated-testing/7a-jenkins.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
'''
```

Expand Down
2 changes: 1 addition & 1 deletion docs/3-revenge-of-the-automated-testing/7b-tekton.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 375a2b4

Please sign in to comment.