From 10572a29d5490f9f25496f5203ffb1aa72b16170 Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Wed, 2 Feb 2022 13:19:33 +0100 Subject: [PATCH] =?UTF-8?q?=E2=AD=90=EF=B8=8F=20initial=20github=20action?= =?UTF-8?q?=20for=20kubernetes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- k8s/action.yml | 25 +++++++++++++++++++++++++ k8s/example.yml | 11 +++++++++++ 2 files changed, 36 insertions(+) create mode 100644 k8s/action.yml create mode 100644 k8s/example.yml diff --git a/k8s/action.yml b/k8s/action.yml new file mode 100644 index 0000000..f0687c7 --- /dev/null +++ b/k8s/action.yml @@ -0,0 +1,25 @@ +name: "Mondoo Kubernetes" +description: "Validate your Kubernetes deployment using Mondoo" +author: "Christoph Hartmann" +branding: + icon: "alert-octagon" + color: "green" +inputs: + command: + description: "Which Mondoo command to run, defaults to scan" + default: scan + policy-bundle: + description: "path to test file" + incognito: + description: "Configuration if the results should be local only" + default: true +runs: + using: "docker" + image: "docker://mondoolabs/mondoo:latest" + args: + - scan + - -t + - k8s + - --incognito + - ${{ inputs.incognito }} + - ${{ policy-bundle }} diff --git a/k8s/example.yml b/k8s/example.yml new file mode 100644 index 0000000..a018c89 --- /dev/null +++ b/k8s/example.yml @@ -0,0 +1,11 @@ +name: Mondoo Kubernetes +on: push +jobs: + mondoo: + runs-on: ubuntu-latest + steps: + - name: Verify a Kubernetes Application + continue-on-error: true + uses: mondoo/actions/k8s@master + with: + policy-bundle: path/to/policy.yml