@@ -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
@@ -105,10 +105,25 @@ 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+ _http._tcp.deb.debian.org:443
114+ aka.ms:443
115+ auth.docker.io:443
116+ cdn.powershellgallery.com:443
117+ dc.services.visualstudio.com:443
118+ debian.map.fastlydns.net:80
119+ files.pythonhosted.org:443
120+ github.com:443
121+ powershellinfraartifacts-gkhedzdeaghdezhr.z01.azurefd.net:443
122+ production.cloudflare.docker.com:443
123+ pypi.org:443
124+ registry-1.docker.io:443
125+ release-assets.githubusercontent.com:443
126+ www.powershellgallery.com:443
112127
113128 - name : Checkout repository
114129 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -152,11 +167,16 @@ jobs:
152167 contents : read
153168
154169 steps :
155- - name : Harden the runner (Audit all outbound calls)
170+ - name : Harden Runner
156171 uses : step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
157172 with :
158- egress-policy : audit
159-
173+ egress-policy : block
174+ allowed-endpoints : >
175+ github.com:443
176+ release-assets.githubusercontent.com:443
177+ registry-1.docker.io:443
178+ auth.docker.io:443
179+ production.cloudflare.docker.com:443
160180 - name : Login to DockerHub
161181 uses : docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
162182 with :
@@ -257,10 +277,12 @@ jobs:
257277 contents : read
258278
259279 steps :
260- - name : Harden the runner (Audit all outbound calls)
280+ - name : Harden Runner
261281 uses : step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
262282 with :
263- egress-policy : audit
283+ egress-policy : block
284+ allowed-endpoints : >
285+ api.github.com:443
264286
265287 - name : Trigger API deployment
266288 uses : peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1
0 commit comments