From 3d35225d781f5e8980b774ef407c1e1e8e458ead Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Wed, 15 Sep 2021 14:44:52 +0200 Subject: [PATCH] GitHub Action --- .github/workflows/kubelinter-sample.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/kubelinter-sample.yaml diff --git a/.github/workflows/kubelinter-sample.yaml b/.github/workflows/kubelinter-sample.yaml new file mode 100644 index 0000000..b7c4112 --- /dev/null +++ b/.github/workflows/kubelinter-sample.yaml @@ -0,0 +1,19 @@ +name: Check Kubernetes YAMLs + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + scan: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Scan valid yaml with kube-linter + uses: stackrox/kube-linter-action@v1.0.2 + with: + directory: kube + config: .kube-linter.yaml