File tree Expand file tree Collapse file tree 6 files changed +126
-5
lines changed Expand file tree Collapse file tree 6 files changed +126
-5
lines changed Original file line number Diff line number Diff line change
1
+ name : CodeQL
2
+
3
+ on :
4
+ merge_group :
5
+ pull_request :
6
+ types :
7
+ - opened
8
+ - synchronize
9
+ push :
10
+ branches :
11
+ - master
12
+ schedule :
13
+ - cron : " 56 12 * * 1"
14
+
15
+ permissions :
16
+ actions : read
17
+ contents : read
18
+ security-events : write
19
+
20
+ concurrency :
21
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
22
+ cancel-in-progress : ${{ github.ref != 'refs/heads/master' }}
23
+
24
+ jobs :
25
+ analyze :
26
+ name : Check for Vulnerabilities
27
+ runs-on : ubuntu-latest
28
+
29
+ strategy :
30
+ fail-fast : false
31
+ matrix :
32
+ language : [python]
33
+
34
+ steps :
35
+ - if : github.actor == 'dependabot[bot]' || github.event_name == 'merge_group'
36
+ run : exit 0 # Skip unnecessary test runs for dependabot and merge queues. Artifically flag as successful, as this is a required check for branch protection.
37
+
38
+ - name : Checkout
39
+ uses : actions/checkout@v3
40
+
41
+ - name : Initialize CodeQL
42
+ uses : github/codeql-action/init@v2
43
+ with :
44
+ languages : ${{ matrix.language }}
45
+ queries : +security-and-quality
46
+
47
+ - name : Autobuild
48
+ uses : github/codeql-action/autobuild@v2
49
+
50
+ - name : Perform CodeQL Analysis
51
+ uses : github/codeql-action/analyze@v2
52
+ with :
53
+ category : " /language:${{ matrix.language }}"
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Build Documentation
3
3
on :
4
4
push :
5
5
branches :
6
- - " master"
6
+ - master
7
7
8
8
permissions :
9
9
contents : read
File renamed without changes.
Original file line number Diff line number Diff line change 15
15
permissions :
16
16
contents : read
17
17
18
+ concurrency :
19
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
20
+ cancel-in-progress : ${{ github.ref != 'refs/heads/master' }}
21
+
18
22
jobs :
19
23
authorize :
20
24
name : Authorize
21
- environment : ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
25
+ environment : ${{ github.actor != 'dependabot[bot]' && github. event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
22
26
runs-on : ubuntu-latest
23
27
steps :
24
28
- run : true
25
29
26
30
run :
27
- if : (github.actor != 'dependabot[bot]')
28
31
needs : authorize # Require approval before running on forked pull requests
29
32
30
- name : Run
33
+ name : Check for Vulnerabilities
31
34
runs-on : ubuntu-latest
32
35
33
36
container :
34
37
image : returntocorp/semgrep
35
38
36
39
steps :
40
+ - if : github.actor == 'dependabot[bot]' || github.event_name == 'merge_group'
41
+ run : exit 0 # Skip unnecessary test runs for dependabot and merge queues. Artifically flag as successful, as this is a required check for branch protection.
42
+
37
43
- uses : actions/checkout@v3
38
44
with :
39
45
ref : ${{ github.event.pull_request.head.sha || github.ref }}
Original file line number Diff line number Diff line change
1
+ name : Snyk
2
+
3
+ on :
4
+ merge_group :
5
+ pull_request_target :
6
+ types :
7
+ - opened
8
+ - synchronize
9
+ push :
10
+ branches :
11
+ - master
12
+ schedule :
13
+ - cron : " 30 0 1,15 * *"
14
+
15
+ permissions :
16
+ security-events : write
17
+ actions : read
18
+ contents : read
19
+
20
+ concurrency :
21
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
22
+ cancel-in-progress : ${{ github.ref != 'refs/heads/master' }}
23
+
24
+ jobs :
25
+ authorize :
26
+ name : Authorize
27
+ environment : ${{ github.actor != 'dependabot[bot]' && github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
28
+ runs-on : ubuntu-latest
29
+ steps :
30
+ - run : true
31
+
32
+ check :
33
+ needs : authorize
34
+
35
+ name : Check for Vulnerabilities
36
+ runs-on : ubuntu-latest
37
+
38
+ steps :
39
+ - if : github.actor == 'dependabot[bot]' || github.event_name == 'merge_group'
40
+ run : exit 0 # Skip unnecessary test runs for dependabot and merge queues. Artifically flag as successful, as this is a required check for branch protection.
41
+
42
+ - uses : actions/checkout@v3
43
+ with :
44
+ ref : ${{ github.event.pull_request.head.sha || github.ref }}
45
+
46
+ -
uses :
snyk/actions/python-3.7@b98d498629f1c368650224d6d212bf7dfa89e4bf # [email protected]
47
+ continue-on-error : true # Make sure the SARIF upload is called
48
+ env :
49
+ SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
50
+ with :
51
+ args : --sarif-file-output=snyk.sarif
52
+
53
+ - name : Upload result to GitHub Code Scanning
54
+ uses : github/codeql-action/upload-sarif@v2
55
+ with :
56
+ sarif_file : snyk.sarif
Original file line number Diff line number Diff line change 13
13
permissions :
14
14
contents : read
15
15
16
+ concurrency :
17
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
18
+ cancel-in-progress : ${{ github.ref != 'refs/heads/master' }}
19
+
16
20
jobs :
17
21
authorize :
18
22
name : Authorize
19
- environment : ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
23
+ environment : ${{ github.actor != 'dependabot[bot]' && github. event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
20
24
runs-on : ubuntu-latest
21
25
steps :
22
26
- run : true
48
52
steps :
49
53
- name : Checkout code
50
54
uses : actions/checkout@v3
55
+ with :
56
+ ref : ${{ github.event.pull_request.head.sha || github.ref }}
51
57
52
58
- name : Configure Python ${{ matrix.python-version }}
53
59
uses : actions/setup-python@v4
You can’t perform that action at this time.
0 commit comments