Skip to content

Commit

Permalink
Mettre à jour le workflow Kubelinter pour utiliser l'action de téléch…
Browse files Browse the repository at this point in the history
…argement de SARIF
  • Loading branch information
AlxFrst committed Apr 18, 2024
1 parent 39614cf commit e99d3a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 58 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/codeql.yml

This file was deleted.

28 changes: 8 additions & 20 deletions .github/workflows/kubelinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,14 @@ 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: lint and post a sarif report
run: |
kube-linter lint --output-format=sarif --output kube-linter-report.sarif
continue-on-error: true
- name: Scan repo with kube-linter
uses: stackrox/[email protected]
with:
directory: .
format: sarif
output-file: kube-linter-results.sarif

- name: Upload SARIF report
- name: Upload kube-linter results
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: kube-linter-report.sarif

- name: Fail if the kube-linter report contains lines
run: |
if grep -q . kube-linter-report.txt; then
echo "kube-linter found issues in the repository"
exit 1
fi
sarif_file: kube-linter-results.sarif

0 comments on commit e99d3a4

Please sign in to comment.