Skip to content
/ semhook Public

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

License

Notifications You must be signed in to change notification settings

hoeg/semhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published