test a workflow linter
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 4s

This commit is contained in:
Lee 2024-09-23 09:51:49 +01:00
parent 13acdc3ab3
commit b7a0e8c40a
2 changed files with 30 additions and 0 deletions

@ -0,0 +1,27 @@
name: Check Kubernetes YAMLs
on:
push:
branches: [main, master]
pull_request:
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Scan yaml files with kube-linter
uses: stackrox/kube-linter-action@v1.0.5
id: kube-linter-action-scan
with:
directory: apps
config: .kube-linter-config.yaml
format: plain
continue-on-error: true
- name: Verify kube-linter-action succeeded
shell: bash
run: |
echo "If this step fails, kube-linter found issues. Check the output of the scan step above."
[[ "${{ steps.kube-linter-action-scan.outcome }}" == "success" ]]

3
.kube-linter-config.yml Normal file

@ -0,0 +1,3 @@
checks:
include: []
exclude: []