blacklanternsecurity / bbot

A recursive internet scanner for hackers.
https://www.blacklanternsecurity.com/bbot/
GNU General Public License v3.0
4.02k stars 370 forks source link

Add a version updater github action #1425

Closed domwhewell-sage closed 1 month ago

domwhewell-sage commented 1 month ago

This PR adds a github workflow to update the versions of nuclei and trufflehog. Other modules that have set versions are

I didn't know if they wanted updating though

It will make a request to the /releases/latest endpoint for the repository to obtain the latest version and store this in an environment variable. It then also grep's the current version out of the module file and compares them. If they do not match it uses sed to replace the version number and then opens a pull request.

I wasn't sure who would be the approve so let me know if it needs changing. Committer and author I have just added Github in there as a placeholder it can be changed to anything.

TheTechromancer commented 1 month ago

Nice work on this. I'm gonna go ahead and merge it, and for the other tools like ffuf, I'll adapt it in BBOT 2.0 to handle all of them.