Laravel Moat

Share
Laravel Moat
Photo by Colin Watts / Unsplash

I've been on a bit of a security drive recently, what with all of the recent supply chain attacks happening in the NPM and Composer worlds. Laravel recently unveiled a new package called Moat, which reviews the security of your GitHub organisations and repositories.

Whilst controls for these do exist on GitHub, they're not always the easiest to find, so it's entirely possible when setting up a new repo, you forget to toggle a setting on or off. Luckily, Moat has you covered!

Moat comes with a ton of checks, which include:

  • 2FA
  • Branch protection
  • Signed commits
  • Immutable releases

Moat (when it's ran) will give you an explanation of the risk, if something is failing along with a standard PASS or FAIL score.

You can customise the checks on a per repo basis, by adding a moat.toml file into the root of your project. This is useful if you wish to disable certain checks from running.

You can check Moat out on Github here.