1
0
mirror of https://github.com/stackrox/kube-linter-action.git synced 2026-07-04 23:51:37 +00:00
Files
kube-linter-action/README.md
T
2021-05-10 17:57:13 +02:00

1.3 KiB
Executable File

kube-linter-action - KubeLinter GitHub Action

This is a GitHub action for scanning Kubernetes YAML files and Helm charts in your GitHub workflow with kube-linter.

Quickstart

  1. Copy .github/workflows/kube-linter-sample.yml file to .github/workflows directory in your repo.
  2. Adjust scan directory to the location where your Kubernetes or Helm files are. See Parameters below.

The new workflow will run every time there's a new push to the repo.
Workflow will fail if kube-linter detects issues. You'll find issues in the output of kube-linter-action.

Example

      - name: Scan repo with kube-linter
        uses: stackrox/kube-linter-action@v1.0.2
        with:
          directory: yamls
          config: .kube-linter/config.yaml

Parameters

  • directory (required) - path of file or directory to scan, absolute or relative to the root of the repo.
  • config (optional) - path to a configuration file if you wish to use a non-default configuration.