Skip to content

Commit 443244a

Browse files
committed
enable Kubescape scan
Signed-off-by: Huabing Zhao <[email protected]>
1 parent 876c9b2 commit 443244a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/kubescape-scan.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Kubescape scanning for misconfigurations
2+
on: [push, pull_request]
3+
jobs:
4+
kubescape:
5+
runs-on: ubuntu-latest
6+
permissions:
7+
actions: read
8+
contents: read
9+
security-events: write
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: kubescape/github-action@main
13+
continue-on-error: true
14+
with:
15+
format: sarif
16+
outputFile: results
17+
# # Optional: Specify the Kubescape Portal credentials
18+
# account: ${{secrets.KUBESCAPE_ACCOUNT}}
19+
# accessKey: ${{secrets.KUBESCAPE_ACCESS_KEY}}
20+
# server: ${{ vars.KUBESCAPE_SERVER }}
21+
# # Optional: Scan a specific path. Default will scan the whole repository
22+
# files: "examples/*.yaml"
23+
- name: Upload Kubescape scan results to Github Code Scanning
24+
uses: github/codeql-action/upload-sarif@v2
25+
with:
26+
sarif_file: results.sarif

0 commit comments

Comments
 (0)