Skip to content

Commit

Permalink
Merge pull request #45 from kubescape/update-ks-version
Browse files Browse the repository at this point in the history
Updating KS image tag to 2.3.6
  • Loading branch information
David Wertenteil authored Jun 25, 2023
2 parents e6dd875 + ab1f55b commit 674ab92
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/kubescape/kubescape:v2.3.0
FROM quay.io/kubescape/kubescape:v2.3.6

# Kubescape uses root privileges for writing the results to a file
USER root
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ inputs:
If enabled, Kubescape will make fixes to the input files. You can then
use these fixes to open Pull Requests from your CI/CD pipeline.
required: false
default: false
default: "false"
runs:
using: docker
image: Dockerfile
Expand Down
6 changes: 1 addition & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,8 @@ severity_threshold_opt=$(
echo ""
)

# The `kubescape fix` subcommand requires the latest "json" format version.
# Other formats ignore this flag.
format_version_opt="--format-version v2"

# TODO: include artifacts_opt once https://github.com/kubescape/kubescape/issues/1040 is resolved
scan_command="kubescape scan ${frameworks_cmd} ${controls_cmd} ${files} ${account_opt} ${fail_threshold_opt} ${severity_threshold_opt} --format ${output_formats} ${format_version_opt} --output ${output_file} ${verbose} ${exceptions} ${controls-config}"
scan_command="kubescape scan ${frameworks_cmd} ${controls_cmd} ${files} ${account_opt} ${fail_threshold_opt} ${severity_threshold_opt} --format ${output_formats} --output ${output_file} ${verbose} ${exceptions} ${controls-config}"

echo "${scan_command}"
eval "${scan_command}"
Expand Down

0 comments on commit 674ab92

Please sign in to comment.