File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow uses actions that are not certified by GitHub.
2+ # They are provided by a third-party and are governed by
3+ # separate terms of service, privacy policy, and support
4+ # documentation.
5+
6+ name : Kubesec
7+
8+ on :
9+ push :
10+ branches : [ develop ]
11+ pull_request :
12+ # The branches below must be a subset of the branches above
13+ branches : [ develop ]
14+ schedule :
15+ - cron : ' 26 11 * * 0'
16+
17+ jobs :
18+ lint :
19+ name : Kubesec
20+ runs-on : ubuntu-20.04
21+ permissions :
22+ actions : read
23+ contents : read
24+ security-events : write
25+ steps :
26+ - name : Checkout code
27+ uses : actions/checkout@v2
28+
29+ - name : Run kubesec scanner
30+ uses : controlplaneio/kubesec-action@43d0ddff5ffee89a6bb9f29b64cd865411137b14
31+ with :
32+ input : file.yaml # specify configuration file to scan here
33+ format : template
34+ template : template/sarif.tpl
35+ output : kubesec-results.sarif
36+ exit-code : " 0"
37+
38+ - name : Upload Kubesec scan results to GitHub Security tab
39+ uses : github/codeql-action/upload-sarif@v1
40+ with :
41+ sarif_file : kubesec-results.sarif
You can’t perform that action at this time.
0 commit comments