Merge remote-tracking branch 'upstream/master' #1
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: 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@951b48540b429070694bc8abd82fd6901eb123ca | |
with: | |
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
- uses: actions/checkout@6d193bf28034eafb982f37bd894289fe649468fc | |
- 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@d8b1697e9a833a1f8cd88c642a6bd8685d3ee856 | |
continue-on-error: true |