homebrew-core/Formula/git-secrets.rb

29 lines
1.5 KiB
Ruby

class GitSecrets < Formula
desc "Prevents you from committing sensitive information to a git repo"
homepage "https://github.com/awslabs/git-secrets"
url "https://github.com/awslabs/git-secrets/archive/1.3.0.tar.gz"
sha256 "f1d50c6c5c7564f460ff8d279081879914abe920415c2923934c1f1d1fac3606"
license "Apache-2.0"
head "https://github.com/awslabs/git-secrets.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "e9de924f892439c26efd7c99bf498edb0425f2ca2ed1b2f6a41894f22a45e362"
sha256 cellar: :any_skip_relocation, big_sur: "847ce4314909e69c8c5e30d67599c1b7892ceb27016a1b4636a4b92a9996bb97"
sha256 cellar: :any_skip_relocation, catalina: "92ae3c8447754b1f5d23b5e7e3a601fca133f4b691b51b5004ffe17f4d763622"
sha256 cellar: :any_skip_relocation, mojave: "d77761ee552d2963788f2bcab6c695d1b52f9d0c1d68dad65230901c750e63aa"
sha256 cellar: :any_skip_relocation, high_sierra: "d77761ee552d2963788f2bcab6c695d1b52f9d0c1d68dad65230901c750e63aa"
sha256 cellar: :any_skip_relocation, sierra: "fc2745b24be00e6b8e4b82d6768632810823ffff3f80ad99ca9943b31d003003"
sha256 cellar: :any_skip_relocation, x86_64_linux: "375d6c697493099bc84e7b61eadeadbb75a34c05d724b558a3ff03d7e267d196"
sha256 cellar: :any_skip_relocation, all: "375d6c697493099bc84e7b61eadeadbb75a34c05d724b558a3ff03d7e267d196"
end
def install
system "make", "install", "PREFIX=#{prefix}"
end
test do
system "git", "init"
system "git", "secrets", "--install"
end
end