From 875f58d2173de9ab5c298f614f5a21bc52ca0482 Mon Sep 17 00:00:00 2001 From: Meysam Date: Thu, 7 Nov 2024 17:50:07 +0700 Subject: [PATCH 1/3] Update entrypoint.sh Signed-off-by: Meysam --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 8e568e1..88d1024 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -146,7 +146,7 @@ if [ -n "${INPUT_IMAGE}" ]; then # When trying to authenticate, we cannot assume that the runner has access # to an *authenticated* container runtime daemon, so we should always try # to pull images from the registry - image_arg="registry://${image_arg}" + # image_arg="registry://${image_arg}" else echo "NOTICE: Received no registry credentials, pulling without authentication." printf "Hint: If you provide credentials, make sure you include both the username and password.\n\n" From 49c829aec109db2f4c242e971814790bcba0270d Mon Sep 17 00:00:00 2001 From: Meysam Date: Thu, 7 Nov 2024 18:07:40 +0700 Subject: [PATCH 2/3] Update Dockerfile Signed-off-by: Meysam --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 80655a0..31acbf1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM quay.io/kubescape/kubescape-cli:v3.0.5 +FROM quay.io/kubescape/kubescape-cli:v3.0.18 # Kubescape uses root privileges for writing the results to a file USER root From 984220007820a2dde3e56dbc302c31742658c09e Mon Sep 17 00:00:00 2001 From: Meysam Date: Thu, 7 Nov 2024 18:17:03 +0700 Subject: [PATCH 3/3] Update entrypoint.sh Signed-off-by: Meysam --- entrypoint.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 88d1024..a7acc12 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -142,11 +142,6 @@ if [ -n "${INPUT_IMAGE}" ]; then auth_opts="" if [ -n "${INPUT_REGISTRYUSERNAME}" ] && [ -n "${INPUT_REGISTRYPASSWORD}" ]; then auth_opts="--username=${INPUT_REGISTRYUSERNAME} --password=${INPUT_REGISTRYPASSWORD}" - - # When trying to authenticate, we cannot assume that the runner has access - # to an *authenticated* container runtime daemon, so we should always try - # to pull images from the registry - # image_arg="registry://${image_arg}" else echo "NOTICE: Received no registry credentials, pulling without authentication." printf "Hint: If you provide credentials, make sure you include both the username and password.\n\n"