This commit is contained in:
parent
b7a0e8c40a
commit
fb7101fdf9
@ -11,17 +11,15 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Scan yaml files with kube-linter
|
- name: Setup Go
|
||||||
uses: stackrox/kube-linter-action@v1.0.5
|
uses: actions/setup-go@v4
|
||||||
id: kube-linter-action-scan
|
|
||||||
with:
|
with:
|
||||||
directory: apps
|
go-version: "1.23.3"
|
||||||
config: .kube-linter-config.yaml
|
|
||||||
format: plain
|
|
||||||
continue-on-error: true
|
|
||||||
|
|
||||||
- name: Verify kube-linter-action succeeded
|
- name: Install kube-linter
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
echo "If this step fails, kube-linter found issues. Check the output of the scan step above."
|
go install golang.stackrox.io/kube-linter/cmd/kube-linter@latest
|
||||||
[[ "${{ steps.kube-linter-action-scan.outcome }}" == "success" ]]
|
|
||||||
|
- name: Scan yaml files with kube-linter
|
||||||
|
run: |
|
||||||
|
kube-linter lint ./apps
|
||||||
|
Reference in New Issue
Block a user