From 2b051aad06af2f26909a5a465e594005f4f71818 Mon Sep 17 00:00:00 2001 From: Krishnaswamy Subramanian Date: Fri, 25 Oct 2019 17:56:44 +0530 Subject: [PATCH] talisman 1.0.0 (new formula) Closes #45797. Signed-off-by: FX Coudert --- Formula/talisman.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Formula/talisman.rb diff --git a/Formula/talisman.rb b/Formula/talisman.rb new file mode 100644 index 0000000000..59f6790677 --- /dev/null +++ b/Formula/talisman.rb @@ -0,0 +1,21 @@ +class Talisman < Formula + desc "Tool to detect and prevent secrets from getting checked in" + homepage "https://thoughtworks.github.io/talisman/" + url "https://github.com/thoughtworks/talisman", + :using => :git, + :tag => "v1.0.0", + :revision => "dd7b5898f7c4d9013d23d4dbd34685611524ac20" + + depends_on "go" => :build + depends_on "gox" => :build + + def install + system "./build" + bin.install "./talisman_darwin_amd64" => "talisman" + end + + test do + system "git", "init", "." + assert_match "talisman scan report", shell_output(bin/"talisman --scan") + end +end