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!
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
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 is supported. For this, pass the SEMGREP_APP_TOKEN
ENV variable to the running binary or the Docker container.
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.