Skip to content

Commit

Permalink
chore: update to debian-base:bullseye-v1.2.0 for arc conformance (#849)
Browse files Browse the repository at this point in the history
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
  • Loading branch information
aramase committed Apr 6, 2022
1 parent b1cd97a commit ff80a0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .pipelines/templates/scan-images.yaml
@@ -1,17 +1,17 @@
steps:
- script: |
# install trivy
wget https://github.com/aquasecurity/trivy/releases/download/v$(TRIVY_VERSION)/trivy_$(TRIVY_VERSION)_Linux-64bit.tar.gz
tar zxvf trivy_$(TRIVY_VERSION)_Linux-64bit.tar.gz
wget https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION:-0.24.4}/trivy_${TRIVY_VERSION:-0.24.4}_Linux-64bit.tar.gz
tar zxvf trivy_${TRIVY_VERSION:-0.24.4}_Linux-64bit.tar.gz
# scan provider image
export REGISTRY="e2e"
export IMAGE_VERSION="test"
OUTPUT_TYPE=docker make container arc-conformance-container
# show all vulnerabilities in the logs
./trivy image "${REGISTRY}/provider-azure:${IMAGE_VERSION}"
./trivy image --exit-code 1 --ignore-unfixed --severity MEDIUM,HIGH,CRITICAL "${REGISTRY}/provider-azure:${IMAGE_VERSION}" || exit 1
./trivy image --vuln-type os --exit-code 1 --ignore-unfixed --severity MEDIUM,HIGH,CRITICAL "${REGISTRY}/provider-azure:${IMAGE_VERSION}" || exit 1
./trivy image "${REGISTRY}/provider-azure-arc-conformance:${IMAGE_VERSION}-linux-amd64"
./trivy image --exit-code 1 --ignore-unfixed --severity MEDIUM,HIGH,CRITICAL "${REGISTRY}/provider-azure-arc-conformance:${IMAGE_VERSION}-linux-amd64" || exit 1
./trivy image --vuln-type os --exit-code 1 --ignore-unfixed --severity MEDIUM,HIGH,CRITICAL "${REGISTRY}/provider-azure-arc-conformance:${IMAGE_VERSION}-linux-amd64" || exit 1
displayName: "Scan images for vulnerability"
2 changes: 1 addition & 1 deletion arc/conformance/plugin/Dockerfile
Expand Up @@ -2,7 +2,7 @@ ARG STEP_CLI_VERSION=0.18.0
ARG STEP_CLI_IMAGE=smallstep/step-cli:${STEP_CLI_VERSION}
FROM $STEP_CLI_IMAGE as step-cli

FROM k8s.gcr.io/build-image/debian-base:bullseye-v1.1.0
FROM k8s.gcr.io/build-image/debian-base:bullseye-v1.2.0
ARG KUBE_VERSION=v1.21.2
ARG TARGETARCH

Expand Down

0 comments on commit ff80a0f

Please sign in to comment.