File tree Expand file tree Collapse file tree 4 files changed +63
-5
lines changed Expand file tree Collapse file tree 4 files changed +63
-5
lines changed 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
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
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
+ contents : read
17
+
18
+ concurrency :
19
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
20
+ cancel-in-progress : ${{ github.ref != 'refs/heads/master' }}
21
+
22
+ jobs :
23
+ authorize :
24
+ name : Authorize
25
+ environment : ${{ github.actor != 'dependabot[bot]' && github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - run : true
29
+
30
+ check :
31
+ needs : authorize
32
+
33
+ name : Check for Vulnerabilities
34
+ runs-on : ubuntu-latest
35
+
36
+ steps :
37
+ - if : github.actor == 'dependabot[bot]' || github.event_name == 'merge_group'
38
+ 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.
39
+
40
+ - uses : actions/checkout@v3
41
+ with :
42
+ ref : ${{ github.event.pull_request.head.sha || github.ref }}
43
+
44
+ - uses : snyk/actions/php@b98d498629f1c368650224d6d212bf7dfa89e4bf # pin@0.4.0
45
+ env :
46
+ SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
You can’t perform that action at this time.
0 commit comments