hoeg / semhook

Combining Semgrep and Starhook to do on demand scanning of multiple repositories

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

semhook

Combining Semgrep and Starhook to do on demand scanning of multiple repositories

Semhook is a web application. It serves the following endpoints:

/scan
/sync
/repo

/scan

POST request. Accepts a file containing the rule you want to run on all the repositories

/sync

GET request. Ensures all repositories are up to date

Getting started

Semgrep and Starhook must be available on the host.

Starhook with a configuration that syncs the repositories you want to run tests agains.

Set the environment variable SEMHOOK_REPO_ROOT=<rRepositories Directory> from the output of $ starhook config show.

TODO

  • Consider if options should be given to the scan
  • Initializing starhook remotely
  • list starhook configs and switch between them
  • cache results?

Pieced together with the help of ChatGPT <3

About

Combining Semgrep and Starhook to do on demand scanning of multiple repositories

License:Apache License 2.0


Languages

Language:HTML 50.9%Language:Go 46.9%Language:Dockerfile 2.0%Language:Shell 0.2%