Mettre à jour la configuration Kubelinter pour exclure les conteneurs… #28
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: Kubelinter on Dev Branch | |
permissions: write-all | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
kubelinter: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Scan repo with kube-linter | |
continue-on-error: true | |
uses: stackrox/[email protected] | |
with: | |
directory: . | |
format: sarif | |
output-file: kube-linter-results.sarif | |
config: .github/kubelinter-config.yaml | |
- name: Scan repo with kube-linter as txt | |
continue-on-error: true | |
uses: stackrox/[email protected] | |
with: | |
directory: . | |
format: txt | |
output-file: kube-linter-results.txt | |
- name: Cat results | |
run: cat kube-linter-results.sarif | |
- name: Upload SARIF results to GitHub | |
uses: github/codeql-action/upload-sarif@v1 | |
with: | |
sarif_file: kube-linter-results.sarif | |
category: 'KubeLinter' |