.github: Add kube-linter check

This commit is contained in:
Sanne Raymaekers 2022-05-27 11:18:45 +02:00 committed by Ondřej Budai
parent 8407c97d96
commit 2208cb1122
2 changed files with 24 additions and 0 deletions

View file

@ -152,3 +152,23 @@ jobs:
with:
name: PR_STATUS
path: SKIP_CI.txt
kube-linter:
name: "🎀 kube-linter"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: redhat-actions/oc-installer@v1
- name: Process template
run: |
mkdir processed-templates
oc process -f templates/composer.yml \
-p IMAGE_TAG=image_tag \
--local \
-o yaml > processed-templates/composer.yml
- uses: stackrox/kube-linter-action@v1.0.4
with:
directory: processed-templates
config: templates/.kube-linter-config.yml
version: 0.3.0

View file

@ -0,0 +1,4 @@
checks:
exclude:
- "no-read-only-root-fs"
- "run-as-non-root"