Commit ad6306ee authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

allow version selection

parent 472d4a91
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -5,8 +5,9 @@ k8s:kube-bench:
    name: bitnami/kubectl:latest
    entrypoint: [""]
  variables:
    KUBE_BENCH_MANIFEST: https://raw.githubusercontent.com/aquasecurity/kube-bench/main/job.yaml
    KUBE_BENCH_JOB_NAME: kube-bench
    KUBE_BENCH_VERSION: main  # or use for example v0.6.7 from the available tags on https://github.com/aquasecurity/kube-bench/tags
    KUBE_BENCH_MANIFEST: https://raw.githubusercontent.com/aquasecurity/kube-bench/${KUBE_BENCH_VERSION}/job.yaml
    KUBE_BENCH_JOB_NAME: kube-bench  # needs to match the meta in the job manifest
  script:
    - wget -O job.yaml ${KUBE_BENCH_MANIFEST}
    - kubectl delete -f job.yaml --ignore-not-found=true