Skip to content

Commit

Permalink
Test/ci (#92)
Browse files Browse the repository at this point in the history
* fix(ci): find directories syntax

* Update ci.yml

* chore(ci): use GITHUB_ENV instead of set output

* chore(ci): echo dirs

* chore(ci): revert to json-array-builder

* chore(ci): update upload-sarif action

* chore(ci): update checkout action

* chore(ci): update upload-sarif action

* chore(ci): update kube-linter action
  • Loading branch information
viv-4 authored Nov 7, 2024
1 parent 3fd8946 commit 265cb93
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand All @@ -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
Expand All @@ -32,15 +32,15 @@ jobs:

- name: Scan yaml files with kube-linter
continue-on-error: true
uses: stackrox/[email protected].4
uses: stackrox/[email protected].5
id: kube-linter-action-scan
with:
directory: ${{ matrix.directory }}
format: sarif
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
Expand Down

0 comments on commit 265cb93

Please sign in to comment.