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