[CD] Update jobcreator/jobwatcher with this commit https://github.com… #726
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
--- | |
name: Lint yaml | |
on: push | |
jobs: | |
run-kube-linter: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
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 | |
shell: bash | |
run: mkdir -p ../results | |
- name: Scan repo with kube-linter | |
uses: stackrox/[email protected] | |
with: | |
directory: . | |
format: sarif | |
output-file: ../results/kube-linter.sarif | |
continue-on-error: true | |
- name: Upload SARIF report files to GitHub | |
uses: github/codeql-action/upload-sarif@v3 | |
# When we are ready to fail builds. Enable the following | |
# # Ensure the workflow eventually fails if files did not pass kube-linter checks. | |
# - name: Verify kube-linter-action succeeded | |
# shell: bash | |
# 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" ]] |