@@ -43,10 +43,10 @@ jobs:
4343 permissions :
4444 contents : read
4545 steps :
46- - name : Harden the runner (Audit all outbound calls)
46+ - name : Harden Runner
4747 uses : step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
4848 with :
49- egress-policy : audit
49+ egress-policy : block
5050
5151 - name : Calculate short SHA
5252 id : set-short-sha
@@ -62,10 +62,10 @@ jobs:
6262 permissions :
6363 contents : read
6464 steps :
65- - name : Harden the runner (Audit all outbound calls)
65+ - name : Harden Runner
6666 uses : step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
6767 with :
68- egress-policy : audit
68+ egress-policy : block
6969
7070 - name : Checkout repository
7171 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -105,10 +105,24 @@ jobs:
105105 packages : write
106106
107107 steps :
108- - name : Harden the runner (Audit all outbound calls)
108+ - name : Harden Runner
109109 uses : step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
110110 with :
111- egress-policy : audit
111+ egress-policy : block
112+ allowed-endpoints : >
113+ github.com:443
114+ registry-1.docker.io:443
115+ auth.docker.io:443
116+ production.cloudflare.docker.com:443
117+ debian.map.fastlydns.net:80
118+ release-assets.githubusercontent.com:443
119+ pypi.org:443
120+ files.pythonhosted.org:443
121+ www.powershellgallery.com:443
122+ aka.ms:443
123+ cdn.powershellgallery.com:443
124+ _http._tcp.deb.debian.org:443
125+ powershellinfraartifacts-gkhedzdeaghdezhr.z01.azurefd.net:443
112126
113127 - name : Checkout repository
114128 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -152,11 +166,16 @@ jobs:
152166 contents : read
153167
154168 steps :
155- - name : Harden the runner (Audit all outbound calls)
169+ - name : Harden Runner
156170 uses : step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
157171 with :
158- egress-policy : audit
159-
172+ egress-policy : block
173+ allowed-endpoints : >
174+ github.com:443
175+ release-assets.githubusercontent.com:443
176+ registry-1.docker.io:443
177+ auth.docker.io:443
178+ production.cloudflare.docker.com:443
160179 - name : Login to DockerHub
161180 uses : docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
162181 with :
@@ -257,10 +276,12 @@ jobs:
257276 contents : read
258277
259278 steps :
260- - name : Harden the runner (Audit all outbound calls)
279+ - name : Harden Runner
261280 uses : step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
262281 with :
263- egress-policy : audit
282+ egress-policy : block
283+ allowed-endpoints : >
284+ api.github.com:443
264285
265286 - name : Trigger API deployment
266287 uses : peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1
0 commit comments