-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cache endpoint to allowed list automatically #173
Comments
@varunsh-coder In source-code of |
We need to do the same steps as done here: https://github.com/actions/toolkit/blob/500d0b42fee2552ae9eeb5933091fe2fbf14e72d/packages/cache/src/internal/cacheHttpClient.ts#L114 We need to write a method in nodejs and get this info before initialize the agent. Somewhere here we need to get the cache artifact location, and pass that as a config to the agent. Line 28 in 0b61316
|
@varunsh-coder I experimented with a workflow, to check if I am able to fetch In the experiment, I performed following steps;
|
Great work @h0x0er! Now that the proof of concept is done, next step is to integrate the changes into harden runner. I noticed that it takes long time to get the cache entry (total time 36 seconds). Why is that? We need to keep the Here are the next steps after the performance issue is resolved:
|
@h0x0er I merged the PR into I suspect the saving of the cache is not at the right place. Should this not be outside the Line 72 in 3ede151
You can see the runs here: I don't see any log for saving of cache. |
@varunsh-coder Thanks for pointing the issue, it was a mistake from my side while i was resolving the merge conflicts. |
Thanks @h0x0er! Can you also put those statements in a try catch block? Don't want the saveCache method to cause step to fail. |
@varunsh-coder Done the above change |
Hi @h0x0er, I reviewed the changes and we need to make few more changes:
Please create PR into |
This should help address issue #83. @h0x0er please take this up.
We will need to figure out how to inform agent/ insights API that this is the cache endpoint, so we do not show it in the insights page.
Once this is done, users will not need to be concerned about the cache endpoint. We will not ask users to add it to allowed list explicitly.
The text was updated successfully, but these errors were encountered: