To sync with the rest of core workflows. Also fixup test2502 failing for out-of-tree builds due to: ``` == Info: error reading ca cert file ./certs/EdelCurlRoot-ca.cacert (Error while reading file.) ``` Ref: https://github.com/curl/curl/actions/runs/13525575035/job/37795171282?pr=16480#step:23:3608 Cherry-picked from #16480 Closes #16481