Open
Description
Hello,
I am trying the preview of GitHub Actions on GitHub Enterprise Sever and found that tool-cahe was hard linked to the public GitHub:
https://github.com/actions/toolkit/blob/main/packages/tool-cache/src/tool-cache.ts#L557
Using the modified context from #576 or process.env.GITHUB_HOST ?? "https://api.github.com
directly would solve the issue.
I've not searched yet for other similar issues in the toolkit. This was where the toolkit died first because it didn't have internet access.
Activity
stevenh commentedon Jan 18, 2022
Just spotted this too. It was raised back in 2020, can we get an update, looks like a really simple fix?
fix(tool-cache): support enterprise instances
naikrovek commentedon Feb 2, 2022
This is an easy fix and the PR is ready. Please merge it and close this silly issue 😄