File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313permissions :
1414 contents : read
1515
16+ concurrency :
17+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
18+ cancel-in-progress : ${{ github.ref != 'refs/heads/master' }}
19+
1620jobs :
1721 authorize :
1822 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' }}
2024 runs-on : ubuntu-latest
2125 steps :
2226 - run : true
4852 steps :
4953 - name : Checkout code
5054 uses : actions/checkout@v3
55+ with :
56+ ref : ${{ github.event.pull_request.head.sha || github.ref }}
5157
5258 - name : Configure Python ${{ matrix.python-version }}
5359 uses : actions/setup-python@v4
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Build Documentation
33on :
44 push :
55 branches :
6- - " master"
6+ - master
77
88permissions :
99 contents : read
Original file line number Diff line number Diff line change 1515permissions :
1616 contents : read
1717
18+ concurrency :
19+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
20+ cancel-in-progress : ${{ github.ref != 'refs/heads/master' }}
21+
1822jobs :
1923 authorize :
2024 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' }}
2226 runs-on : ubuntu-latest
2327 steps :
2428 - run : true
2529
2630 run :
27- if : (github.actor != 'dependabot[bot]')
2831 needs : authorize # Require approval before running on forked pull requests
2932
30- name : Run
33+ name : Check for Vulnerabilities
3134 runs-on : ubuntu-latest
3235
3336 container :
3437 image : returntocorp/semgrep
3538
3639 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+
3743 - uses : actions/checkout@v3
3844 with :
3945 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