Margin is a GitHub App. When a pull request is opened or updated it compares the changed files at the pull request’s starting point and at its newest commit, and comments on what is new: a leaked secret, a dependency with a known vulnerability, a risky Terraform change on Google Cloud, an unsafe GitHub Actions workflow. It reads every commit, so a key that was added and then “removed” in a later commit is still caught, because it stays in the history. Every message comes from a fixed, reviewed rule catalog, never from a language model, so the same input always gives the same review. Its check fails while a High finding is open; a maintainer can accept one with a label.
It is split in two services on purpose. The part the internet can reach holds only the webhook secret: it checks each delivery’s signature and queues a review. The part that holds the app’s private key cannot be reached from the internet at all. Margin never checks out, builds or runs the code it reviews, and it never repeats a secret it finds. The demo repository accepts pull requests from anyone, so guests get their own queue and much smaller budgets, and a review that cannot be finished fails the check rather than passing quietly.