mirror of
https://github.com/stackrox/kube-linter-action.git
synced 2026-07-04 23:51:37 +00:00
f2c260fad1
Fixing for update to versioning.
976 B
Executable File
976 B
Executable File
kube-linter-action
This is a GitHub action for scanning Kubernetes deployment files with kube-linter. This includes both the action itself (.github/actions) and sample GitHub workflow (.github/workflows) and a test YAML.
Quick deployment:
- Create a new GitHub repo.
- Push all files from the
sampledirectory into the repo. - The
kube-linter.ymlworkflow will run as an action every time there's a new push to this repo.
The action takes two parameters.
- name: Scan repo
id: kube-lint-repo
uses: stackrox/kube-linter-action@v1
with:
directory: yamls
config: .kube-linter/config.yaml
directoryis mandatory -- this is the directory of deployment files to scan.configis optional -- this is the path to a configuration file if you wish to use a non-default configuration.