Add ansible linter action #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Kubernetes YAMLs with kube-linter | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
scan: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Scan yaml files with kube-linter | |
uses: stackrox/[email protected] | |
id: kube-linter-action-scan | |
with: | |
# Adjust this directory to the location where your kubernetes resources and helm charts are located. | |
directory: "." | |
# 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: .kube-linter.yaml |