Skip to content

Commit

Permalink
⭐️ initial github action for kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Feb 2, 2022
0 parents commit 10572a2
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
25 changes: 25 additions & 0 deletions k8s/action.yml
Original file line number Diff line number Diff line change
@@ -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 }}
11 changes: 11 additions & 0 deletions k8s/example.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 10572a2

Please sign in to comment.