https://github.com/rtfmkiesel/bagel
Bagel is a simple web UI for Semgrep
https://github.com/rtfmkiesel/bagel
gin-gonic golang gorm sast semgrep
Last synced: 6 months ago
JSON representation
Bagel is a simple web UI for Semgrep
- Host: GitHub
- URL: https://github.com/rtfmkiesel/bagel
- Owner: rtfmkiesel
- License: apache-2.0
- Created: 2024-07-17T11:38:24.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-07T15:41:50.000Z (11 months ago)
- Last Synced: 2025-03-25T14:05:22.176Z (7 months ago)
- Topics: gin-gonic, golang, gorm, sast, semgrep
- Language: Go
- Homepage:
- Size: 304 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🥯 Bagel
Bagel is a simple web UI for [Semgrep](https://semgrep.dev/). This project was made to try out and learn [Gin](https://gin-gonic.com/) and [Gorm](https://gorm.io/index.html), so it may be highly unoptimized. Feedback is welcome!

## Usage
### Docker
If you want to run Bagel inside a Docker container, build and run the container with:
```sh
# 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](https://semgrep.dev/) installed, and in your `$PATH`, you can build and run Bagel as a compiled binary. For this, build Bagel with:
```sh
# 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](https://www.apache.org/licenses/LICENSE-2.0). The fonts `Roboto` and `RobotoMono` are licensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0).This project is not affiliated with [Semgrep](https://semgrep.dev/).