Make tool-cache compatible with GHES without internet access
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.9k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in packages/tool-cache/src/tool-cache.ts at the referenced line around 557, then read issue #576 for the modified context mentioned here. Trace which GitHub endpoint tool-cache uses and verify the change against a GHES environment without internet access; done means tool-cache no longer depends on the public GitHub endpoint in that scenario.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- ci-cd, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100