diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a7f0aaa..4ab1818 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,11 +7,11 @@ jobs: chart-directories: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: kanga333/json-array-builder@main id: array with: - cmd: 'find charts/placeos/charts -mindepth 1 -type d \\( -name tests -o -name templates \\) -prune -o -type d -print' + cmd: 'find charts/placeos/charts -mindepth 1 -type d -not -name tests -not -name templates' outputs: directories: ${{ steps.array.outputs.build }} @@ -23,7 +23,7 @@ jobs: matrix: directory: ${{ fromJson(needs.chart-directories.outputs.directories) }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # This prepares directory where github/codeql-action/upload-sarif@v1 looks up report files by default. - name: Create ../results directory for SARIF report files @@ -32,7 +32,7 @@ jobs: - name: Scan yaml files with kube-linter continue-on-error: true - uses: stackrox/kube-linter-action@v1.0.4 + uses: stackrox/kube-linter-action@v1.0.5 id: kube-linter-action-scan with: directory: ${{ matrix.directory }} @@ -40,7 +40,7 @@ jobs: output-file: ../results/kube-linter.sarif - name: Upload SARIF report files to GitHub - uses: github/codeql-action/upload-sarif@v1 + uses: github/codeql-action/upload-sarif@v3 # Ensure the workflow eventually fails if files did not pass kube-linter checks. - name: Verify kube-linter-action succeeded