raphw / byte-buddy

Runtime code generation for the Java virtual machine.
https://bytebuddy.net
Apache License 2.0
6.23k stars 804 forks source link

ci: update harden-runner configuration #1671

Closed varunsh-coder closed 2 months ago

varunsh-coder commented 2 months ago

Related to https://github.com/step-security/harden-runner/issues/167

I noticed that downloads.gradle-dn.com is no longer a valid domain. Since it was in the block policy but could not be resolved, harden-runner was reverting the policy.

Couple more were not needed that I have removed: artifactcache.actions.githubusercontent.com:443 does not have to be allowed explicitly, as it is always allowed aw97acprodeus1file2.blob.core.windows.net:443 is a cache endpoint and does not have to be allowed explicitly, as harden-runner auto-detects cache endpoints and adds to allowed list.

When I ran this job in a fork in audit mode, it needed few more endpoints, which I have added.

I have also bumped the harden-runner version.