Skip to content

Commit

Permalink
ci: Add kube-linter workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
siketyan committed Mar 26, 2024
1 parent e294759 commit 4221f1b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
25 changes: 25 additions & 0 deletions .github/workflows/kube-linter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: kube-linter

on:
push:
branches:
- main
pull_request: {}

permissions:
contents: read
checks: write

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: stackrox/kube-linter-action@v1
with:
directory: '.'
config: .kube-linter/config.yaml
format: sarif
output-file: ../results/kube-linter.sarif

- if: always()
uses: github/codeql-action/upload-sarif@v3

0 comments on commit 4221f1b

Please sign in to comment.