File tree Expand file tree Collapse file tree 3 files changed +76
-23
lines changed Expand file tree Collapse file tree 3 files changed +76
-23
lines changed Original file line number Diff line number Diff line change 77 pull_request :
88 branches :
99 - main
10- schedule :
11- - cron : ' 0 0 * * 0'
1210
1311jobs :
14- analyze :
15- name : Analyze
16- runs-on : ubuntu-latest
17- permissions :
18- actions : read
19- contents : read
20- security-events : write
21-
22- steps :
23- - name : Checkout
24- uses : actions/checkout@v2
25-
26- - name : Initialize CodeQL
27- uses : github/codeql-action/init@v1
28- with :
29- languages : python
30-
31- - name : Perform CodeQL analysis
32- uses : github/codeql-action/analyze@v1
33-
3412 linting :
3513 name : Linting
3614 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1+ name : Security
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+ # every Sunday at midnight
11+ schedule :
12+ - cron : ' 0 0 * * 0'
13+
14+ permissions :
15+ actions : read
16+ contents : read
17+ security-events : write
18+
19+ jobs :
20+ codeql :
21+ name : CodeQL
22+ runs-on : ubuntu-latest
23+
24+ steps :
25+ - name : Checkout
26+ uses : actions/checkout@v2
27+
28+ - name : Initialize CodeQL
29+ uses : github/codeql-action/init@v1
30+ with :
31+ languages : python
32+
33+ - name : Run CodeQL
34+ uses : github/codeql-action/analyze@v1
35+
36+ ossar :
37+ name : OSSAR
38+ runs-on : windows-latest
39+
40+ steps :
41+ - name : Checkout
42+ uses : actions/checkout@v2
43+
44+ - name : Run OSSAR
45+ id : ossar
46+ uses : github/ossar-action@v1
47+
48+ - name : Upload OSSAR results
49+ if : always()
50+ uses : github/codeql-action/upload-sarif@v1
51+ with :
52+ sarif_file : ${{ steps.ossar.outputs.sarifFile }}
53+
54+ semgrep :
55+ name : Semgrep
56+ runs-on : ubuntu-latest
57+
58+ steps :
59+ - name : Checkout
60+ uses : actions/checkout@v2
61+
62+ - name : Run Semgrep
63+ uses : returntocorp/semgrep-action@v1
64+ with :
65+ config : >-
66+ p/ci
67+ p/secrets
68+ auditOn : push
69+ generateSarif : true
70+
71+ - name : Upload Semgrep results
72+ if : always()
73+ uses : github/codeql-action/upload-sarif@v1
74+ with :
75+ sarif_file : semgrep.sarif
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Tests
33on :
44 push :
55 branches :
6- - ' * '
6+ - main
77 paths-ignore :
88 - ' docs/**'
99 - ' **.md'
You can’t perform that action at this time.
0 commit comments