Skip to content

Commit

Permalink
Mettre à jour l'action de téléchargement de SARIF dans le workflow Ku…
Browse files Browse the repository at this point in the history
…belinter
  • Loading branch information
AlxFrst committed Apr 18, 2024
1 parent b4a2856 commit f138eef
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/kubelinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Kubelinter
run: |
curl -Lo kubelinter.tar.gz https://github.com/stackrox/kube-linter/releases/latest/download/kube-linter-linux.tar.gz
tar -xzf kubelinter.tar.gz
chmod +x kube-linter
sudo mv kube-linter /usr/local/bin/
- name: Scan repo with kube-linter
uses: stackrox/[email protected]
with:
directory: .
format: sarif
output-file: kube-linter.sarif

- name: lint and post a sarif report
run: |
kube-linter lint --output-format=sarif --output kube-linter-report.sarif
continue-on-error: true
- name: Upload SARIF report
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: kube-linter.sarif

- name: Upload SARIF report
uses: github/codeql-action/upload-sarif@v3
Expand Down

0 comments on commit f138eef

Please sign in to comment.