@@ -15,10 +15,19 @@ jobs:
1515 security-events : write
1616
1717 steps :
18- - name : Harden the runner (Audit all outbound calls)
18+ - name : " Harden the runner (Block egress traffic: Only allow calls to allowed endpoints) "
1919 uses : step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
2020 with :
21- egress-policy : audit
21+ egress-policy : block
22+ allowed-endpoints : >+
23+ github.com:443
24+ api.github.com:443
25+ release-assets.githubusercontent.com:443
26+ pypi.org:443
27+ files.pythonhosted.org:443
28+ community.chocolatey.org:443
29+ community.chocolatey.org:80
30+ packages.chocolatey.org:443
2231
2332 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2433
@@ -73,10 +82,58 @@ jobs:
7382 security-events : write
7483
7584 steps :
76- - name : Harden the runner (Audit all outbound calls)
85+ - name : " Harden the runner (Block egress traffic: Only allow calls to allowed endpoints) "
7786 uses : step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
7887 with :
79- egress-policy : audit
88+ egress-policy : block
89+ allowed-endpoints : >+
90+ _http._tcp.azure.archive.ubuntu.com:443
91+ _https._tcp.archive.ubuntu.com:443
92+ _https._tcp.dl.google.com:443
93+ _https._tcp.esm.ubuntu.com:443
94+ _https._tcp.motd.ubuntu.com:443
95+ _https._tcp.packages.microsoft.com:443
96+ _https._tcp.security.ubuntu.com:443
97+ 0.pool.ntp.org:443
98+ api.apple-cloudkit.com:443
99+ api.github.com:443
100+ archive.ubuntu.com:443
101+ azure.archive.ubuntu.com:443
102+ azure.archive.ubuntu.com:80
103+ cfhcable.dl.sourceforge.net:443
104+ community.chocolatey.org:443
105+ community.chocolatey.org:80
106+ cytranet-dal.dl.sourceforge.net:443
107+ dc.services.visualstudio.com:443
108+ dl.google.com:443
109+ downloads.sourceforge.net:443
110+ esm.ubuntu.com:443
111+ fe2cr.update.microsoft.com:443
112+ files.pythonhosted.org:443
113+ formulae.brew.sh:443
114+ gdmf.apple.com:443
115+ ghcr.io:443
116+ gigenet.dl.sourceforge.net:443
117+ github.com:443
118+ init.itunes.apple.com:443
119+ mask.icloud.com:443
120+ mesu.apple.com:443
121+ mirrors.ctan.org:443
122+ mobile.events.data.microsoft.com:443
123+ motd.ubuntu.com:443
124+ netactuate.dl.sourceforge.net:443
125+ ocsp.sectigo.com:80
126+ ocsp2.apple.com:443
127+ packages.chocolatey.org:443
128+ packages.microsoft.com:443
129+ pilotfiber.dl.sourceforge.net:443
130+ pkg-containers.githubusercontent.com:443
131+ psychz.dl.sourceforge.net:443
132+ pypi.org:443
133+ release-assets.githubusercontent.com:443
134+ security.ubuntu.com:443
135+ sourceforge.net:443
136+ ziglang.org:443
80137
81138 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
82139
0 commit comments