-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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,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 | ||
|