Open source plugin
Read the plugin's source and confirm the binary you run was built from it, using the reproducible build.
The plugin that runs on developers' machines is open source under the Apache 2.0 licence. Its complete source is published at github.com/leotrace-hq/leoprevent-plugin, next to the binaries it ships.
From the source you can confirm exactly what leaves the machine, when a review is skipped, and that the plugin contains no review rules of its own: it asks LeoTrace's service.
Check the binary matches the source#
The build is reproducible: building the source gives byte for byte the same binary.
- Install the Go version named in the repository's
go.mod. - Clone the repository and run the build:
./build.sh- Compare your build with the shipped binary for your platform:
shasum -a 256 bin/leoprevent-plugin .agents/plugins/leoprevent/bin/leoprevent-plugin-darwin-arm64Use the -darwin-amd64, -linux-amd64 or -linux-arm64 binary to match your platform. For Windows, compare bin/leoprevent-plugin-windows-amd64.exe with .agents/plugins/leoprevent/bin/leoprevent-plugin.exe. On Linux, use sha256sum in place of shasum -a 256. The two hashes must be identical. If they differ, check go version first: a different Go release gives a different, still valid, hash.
About the repository#
The public repository is a mirror, replaced in full on each release, so it takes no contributions or issues. Send ideas and fixes through Contact support, and security reports as described in Report a security issue.