This repository was archived by the owner on Nov 28, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +51
-8
lines changed Expand file tree Collapse file tree 6 files changed +51
-8
lines changed Original file line number Diff line number Diff line change 34
34
steps :
35
35
- name : Harden Runner
36
36
uses : step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
37
- with :
38
- egress-policy : audit
37
+ with :
38
+ disable-sudo : true
39
+ egress-policy : block
40
+ allowed-endpoints : >
41
+ api.github.com:443
42
+ files.pythonhosted.org:443
43
+ github.com:443
44
+ pypi.org:443
39
45
40
46
- uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
41
47
- name : Bandit Scan
Original file line number Diff line number Diff line change 1
1
name : black-formatter
2
2
3
3
on : [push, pull_request]
4
-
4
+ permissions :
5
+ contents : read
6
+
5
7
jobs :
6
8
black-linter :
7
9
runs-on : ubuntu-latest
8
10
steps :
9
11
- name : Harden Runner
10
12
uses : step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
11
13
with :
12
- egress-policy : audit
14
+ disable-sudo : true
15
+ egress-policy : block
16
+ allowed-endpoints : >
17
+ files.pythonhosted.org:443
18
+ github.com:443
19
+ pypi.org:443
13
20
14
21
- uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
15
22
- uses : psf/black@3702ba224ecffbcec30af640c149f231d90aebdb # stable
Original file line number Diff line number Diff line change 28
28
- name : Harden Runner
29
29
uses : step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
30
30
with :
31
- egress-policy : audit
31
+ disable-sudo : true
32
+ egress-policy : block
33
+ allowed-endpoints : >
34
+ api.github.com:443
35
+ github.com:443
32
36
33
37
- name : Checkout code
34
38
uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
Original file line number Diff line number Diff line change 34
34
- name : Harden Runner
35
35
uses : step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
36
36
with :
37
- egress-policy : audit
37
+ disable-sudo : true
38
+ egress-policy : block
39
+ allowed-endpoints : >
40
+ api.github.com:443
41
+ api.osv.dev:443
42
+ api.scorecard.dev:443
43
+ api.securityscorecards.dev:443
44
+ auth.docker.io:443
45
+ fulcio.sigstore.dev:443
46
+ github.com:443
47
+ index.docker.io:443
48
+ oss-fuzz-build-logs.storage.googleapis.com:443
49
+ rekor.sigstore.dev:443
50
+ tuf-repo-cdn.sigstore.dev:443
51
+ www.bestpractices.dev:443
38
52
39
53
- name : " Checkout code"
40
54
uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
Original file line number Diff line number Diff line change 35
35
- name : Harden Runner
36
36
uses : step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
37
37
with :
38
- egress-policy : audit
38
+ disable-sudo : true
39
+ egress-policy : block
40
+ allowed-endpoints : >
41
+ builds.hex.pm:443
42
+ github.com:443
43
+ repo.hex.pm:443
44
+ sobelow.io:443
39
45
40
46
- uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
41
47
- id : run-action
Original file line number Diff line number Diff line change 25
25
- name : Harden Runner
26
26
uses : step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
27
27
with :
28
- egress-policy : audit
28
+ egress-policy : block
29
+ allowed-endpoints : >
30
+ api.github.com:443
31
+ api0.prismacloud.io:443
32
+ files.pythonhosted.org:443
33
+ github.com:443
34
+ pypi.org:443
29
35
30
36
- name : Checkout code
31
37
uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
You can’t perform that action at this time.
0 commit comments