Skip to content

Commit c40f3cd

Browse files
authored
Update main.yml (#152)
improve security https://app.stepsecurity.io/github/Hack23/lambda-in-private-vpc/actions/runs/5475786898 Signed-off-by: James Pether Sörling <pethers@users.noreply.github.com>
1 parent ca75f10 commit c40f3cd

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/main.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,28 @@ jobs:
1414
- name: Harden Runner
1515
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 # v2.4.1
1616
with:
17-
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
17+
disable-sudo: true
18+
egress-policy: block
19+
allowed-endpoints: >
20+
api.github.com:443
21+
api.hack23.com:443
22+
auth.docker.io:443
23+
cfu.zaproxy.org:443
24+
cloudformation.eu-central-1.amazonaws.com:443
25+
cloudformation.eu-west-1.amazonaws.com:443
26+
files.pythonhosted.org:443
27+
github.com:443
28+
news.zaproxy.org:443
29+
objects.githubusercontent.com:443
30+
production.cloudflare.docker.com:443
31+
pypi.org:443
32+
raw.githubusercontent.com:443
33+
registry-1.docker.io:443
34+
sts.eu-central-1.amazonaws.com:443
35+
sts.eu-west-1.amazonaws.com:443
36+
tel.zaproxy.org:443
37+
www.bridgecrew.cloud:443
38+
1839
- name: Checkout
1940
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
2041
- name: Run StandardLint

0 commit comments

Comments
 (0)