Skip to content

Merge pull request #373 from Tanguille/renovate/homarr-2.x #1384

Merge pull request #373 from Tanguille/renovate/homarr-2.x

Merge pull request #373 from Tanguille/renovate/homarr-2.x #1384

Workflow file for this run

name: Scan with kube-linter
on:
push:
branches: [main]
pull_request:
jobs:
scan:
runs-on: ubuntu-latest
env:
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Scan files with kube-linter
uses: stackrox/[email protected]
id: kube-linter-action-scan
with:
directory: kubernetes
# Adjust this to the location of kube-linter config you're using, or remove the setting if you'd like to use
# the default config.
# config: sample/.kube-linter-config.yaml
format: sarif
output-file: ./kube-linter.sarif
# This allows the following upload-sarif action to still upload the results.
continue-on-error: true
- name: Upload SARIF report files to DeepSource
run: |
# Install the CLI
curl https://deepsource.io/cli | sh
# Send the report to DeepSource
./bin/deepsource report --analyzer kube-linter --analyzer-type community --value-file ./kube-linter.sarif