File tree 1 file changed +26
-0
lines changed
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments