Skip to content

Bagel is a simple web UI for Semgrep

License

Notifications You must be signed in to change notification settings

rtfmkiesel/bagel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🥯 Bagel

Bagel is a simple web UI for Semgrep. This project was made to try out and learn Gin and Gorm, so it may be highly unoptimized. Feedback is welcome!

Preview of the landing Page

Preview of a scan result

Usage

Docker

If you want to run Bagel inside a Docker container, build and run the container with:

# or use 'make docker && make docker-run'
docker build -t bagel . 
docker run --rm -p 8080:8080 bagel

Binary

If you have Golang and Semgrep installed, and in your $PATH, you can build and run Bagel as a compiled binary. For this, build Bagel with:

# or use 'make'
go mod tidy
CGO_ENABLED=0 go build -ldflags="-s -w" -o bagel

And then run it with ./bagel. It should now be accessible on http://127.0.0.1:8080.

Semgrep Pro

Semgrep Pro is supported. For this, pass the SEMGREP_APP_TOKEN ENV variable to the running binary or the Docker container.

License

This project is licensed under the Apache License 2.0. The fonts Roboto and RobotoMono are licensed under the Apache License 2.0.

This project is not affiliated with Semgrep.