Skip to content

Commit efd4f44

Browse files
Merge pull request #36 from jetstack/armo-test
Add scan pipeline with kubescape
2 parents adc5b4e + f7b7e8a commit efd4f44

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/scan.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Kubescape scanning for misconfigurations
2+
on: [push, pull_request]
3+
jobs:
4+
kubescape:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- uses: kubescape/github-action@main
9+
continue-on-error: true
10+
with:
11+
format: sarif
12+
outputFile: results.sarif
13+
# Optional: Specify the Kubescape cloud account ID
14+
# account: ${{secrets.KUBESCAPE_ACCOUNT}}
15+
# # Optional: Scan a specific path. Default will scan the whole repository
16+
# files: "examples/*.yaml"
17+
- name: Upload Kubescape scan results to Github Code Scanning
18+
uses: github/codeql-action/upload-sarif@v2
19+
with:
20+
sarif_file: results.sarif

0 commit comments

Comments
 (0)