Skip to content

Commit

Permalink
ci:add kube-linter
Browse files Browse the repository at this point in the history
KubeLinter is a SAST tool to scan Kubernetes YAML and Helm Charts
  • Loading branch information
xopham committed Aug 13, 2021
1 parent 587d5a3 commit fa1d72b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ jobs:
run: |
python3 -m black . 2>&1 | grep -q "reformatted" && { echo 'Not properly formatted.'; exit 1; } || true
kube-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Scan repo
id: kube-lint-repo
uses: stackrox/kube-linter-action@v1.0.0
with:
directory: helm
config: .kube-linter/config.yaml

hadolint:
runs-on: ubuntu-latest
container:
Expand Down
2 changes: 2 additions & 0 deletions .kube-linter/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
checks:
doNotAutoAddDefaults: false

0 comments on commit fa1d72b

Please sign in to comment.