-
Notifications
You must be signed in to change notification settings - Fork 96
41 lines (35 loc) · 1.09 KB
/
kube-linter.yaml
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
name: KubeLinter
on:
push:
paths:
- 'chart/k8gb/**'
pull_request:
branches:
- master
paths-ignore:
- 'chart/k8gb/**'
permissions:
contents: read
jobs:
scan:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Create ../results directory for sarif files
shell: bash
run: mkdir -p ../results
- name: Scan k8gb chart
id: kube-lint-repo
uses: stackrox/kube-linter-action@e5759fab01e612c139fe23f264820ba0cf73320c
with:
directory: chart/k8gb
version: 0.2.5
format: sarif
output-file: ../results/kube-linter.sarif
- name: Upload sarif output to GitHub
uses: github/codeql-action/upload-sarif@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1
continue-on-error: true