-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.15 KB
/
kubelinter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Kubelinter on Dev Branch
permissions: write-all
on:
push:
branches:
- main
jobs:
kubelinter:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Scan repo with kube-linter
continue-on-error: true
uses: stackrox/[email protected]
with:
directory: .
format: sarif
output-file: kube-linter-results.sarif
config: .github/kubelinter-config.yaml
- name: Scan repo with kube-linter as txt
continue-on-error: true
uses: stackrox/[email protected]
with:
directory: .
format: txt
output-file: kube-linter-results.txt
- name: Cat results
run: cat kube-linter-results.sarif
- name: Upload SARIF results to GitHub
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: kube-linter-results.sarif
category: 'KubeLinter'
- name: upload txt results to GitHub
uses: actions/upload-artifact@v4
with:
name: kube-linter-results
path: kube-linter-results.txt