Skip to content

Commit

Permalink
fixing the issue 52 with image scan using roxctl
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarrata committed Feb 25, 2022
1 parent 69d44db commit 1b7f07a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ spec:
- name: rox_central_endpoint
value: roxsecrets
- name: output_format
value: pretty
value: table
- name: image_digest
value: $(tasks.build-image.results.IMAGE_DIGEST)
- name: image-check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ spec:
- name: rox_central_endpoint
value: roxsecrets
- name: output_format
value: pretty
value: table
- name: image_digest
value: $(tasks.build-image.results.IMAGE_DIGEST)
- name: image-check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
description: Full name of image to scan (example -- gcr.io/rox/sample:5.0-rc1)
- name: output_format
type: string
description: Output format (json | csv | pretty)
description: Output format (json | csv | table)
default: json
- name: image_digest
description: Digest in sha256 hash format of the image to scan
Expand All @@ -41,5 +41,5 @@ spec:
curl -k -L -H "Authorization: Bearer $ROX_API_TOKEN" https://$ROX_CENTRAL_ENDPOINT/api/cli/download/roxctl-linux --output ./roxctl > /dev/null; echo "Getting roxctl"
chmod +x ./roxctl > /dev/null
echo "## Scanning image $(params.image)@$(params.image_digest)"
./roxctl image scan --insecure-skip-tls-verify -e $ROX_CENTRAL_ENDPOINT --image $(params.image)@$(params.image_digest) --format $(params.output_format)
./roxctl image scan --insecure-skip-tls-verify -e $ROX_CENTRAL_ENDPOINT --image $(params.image)@$(params.image_digest) --output $(params.output_format)
echo "## Go to https://$ROX_CENTRAL_ENDPOINT/main/vulnerability-management/image/$(params.image_digest) to check more info"
3 changes: 1 addition & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ err() {
}

info "Installing Demo"
ansible-playbook bootstrap/deploy_demo.yaml

ansible-playbook bootstrap/deploy_demo.yaml -v

0 comments on commit 1b7f07a

Please sign in to comment.