@@ -15,10 +15,16 @@ 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
2228
2329 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2430
@@ -73,10 +79,58 @@ jobs:
7379 security-events : write
7480
7581 steps :
76- - name : Harden the runner (Audit all outbound calls)
82+ - name : " Harden the runner (Block egress traffic: Only allow calls to allowed endpoints) "
7783 uses : step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
7884 with :
79- egress-policy : audit
85+ egress-policy : block
86+ allowed-endpoints : >+
87+ _http._tcp.azure.archive.ubuntu.com:443
88+ _https._tcp.archive.ubuntu.com:443
89+ _https._tcp.dl.google.com:443
90+ _https._tcp.esm.ubuntu.com:443
91+ _https._tcp.motd.ubuntu.com:443
92+ _https._tcp.packages.microsoft.com:443
93+ _https._tcp.security.ubuntu.com:443
94+ 0.pool.ntp.org:443
95+ api.apple-cloudkit.com:443
96+ api.github.com:443
97+ archive.ubuntu.com:443
98+ azure.archive.ubuntu.com:443
99+ azure.archive.ubuntu.com:80
100+ cfhcable.dl.sourceforge.net:443
101+ community.chocolatey.org:443
102+ community.chocolatey.org:80
103+ cytranet-dal.dl.sourceforge.net:443
104+ dc.services.visualstudio.com:443
105+ dl.google.com:443
106+ downloads.sourceforge.net:443
107+ esm.ubuntu.com:443
108+ fe2cr.update.microsoft.com:443
109+ files.pythonhosted.org:443
110+ formulae.brew.sh:443
111+ gdmf.apple.com:443
112+ ghcr.io:443
113+ gigenet.dl.sourceforge.net:443
114+ github.com:443
115+ init.itunes.apple.com:443
116+ mask.icloud.com:443
117+ mesu.apple.com:443
118+ mirrors.ctan.org:443
119+ mobile.events.data.microsoft.com:443
120+ motd.ubuntu.com:443
121+ netactuate.dl.sourceforge.net:443
122+ ocsp.sectigo.com:80
123+ ocsp2.apple.com:443
124+ packages.chocolatey.org:443
125+ packages.microsoft.com:443
126+ pilotfiber.dl.sourceforge.net:443
127+ pkg-containers.githubusercontent.com:443
128+ psychz.dl.sourceforge.net:443
129+ pypi.org:443
130+ release-assets.githubusercontent.com:443
131+ security.ubuntu.com:443
132+ sourceforge.net:443
133+ ziglang.org:443
80134
81135 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
82136
0 commit comments