From fb7101fdf97deb9ffd1a434325ad73ba032edad5 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 23 Sep 2024 09:53:49 +0100 Subject: [PATCH] try this way --- .gitea/workflows/kubernetes-linter.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/kubernetes-linter.yml b/.gitea/workflows/kubernetes-linter.yml index 26b4209..a767cc1 100644 --- a/.gitea/workflows/kubernetes-linter.yml +++ b/.gitea/workflows/kubernetes-linter.yml @@ -11,17 +11,15 @@ jobs: 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 + - name: Setup Go + uses: actions/setup-go@v4 with: - directory: apps - config: .kube-linter-config.yaml - format: plain - continue-on-error: true + go-version: "1.23.3" - - name: Verify kube-linter-action succeeded - shell: bash + - name: Install kube-linter 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" ]] + go install golang.stackrox.io/kube-linter/cmd/kube-linter@latest + + - name: Scan yaml files with kube-linter + run: | + kube-linter lint ./apps