Skip to content
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

Cache nuclei to toolcache dir. #57

Merged
merged 5 commits into from
Mar 13, 2024
Merged

Conversation

PittyXu
Copy link
Contributor

@PittyXu PittyXu commented May 24, 2023

Use cacheFile to cache nuclei.

@tibbon
Copy link
Contributor

tibbon commented Mar 12, 2024

This seems useful. Can this move forward?

@tibbon
Copy link
Contributor

tibbon commented Mar 12, 2024

Docs on this here: https://github.com/actions/toolkit/tree/main/packages/tool-cache#cache

This would allow us not only to check to cache, but save files to the cache, and skip needing to redownload/reinstall Nuclei every single time we run actions.

Copy link
Contributor

@RamanaReddy0M RamanaReddy0M left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2024-03-13 at 6 14 16 PM
On second run used the cached nuclei binary, Instead of downloading new one.
Test Ref: https://github.com/RamanaReddy0M/workflow-test/actions/runs/8264730056/job/22608933270
lgtm!

@tibbon
Copy link
Contributor

tibbon commented Mar 13, 2024

Thank you so much! This is going to help our test speed significantly, as we run many stages of Nuclei tests internally and they each call the action.

@ehsandeep ehsandeep merged commit 40053a8 into projectdiscovery:main Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants