From d1c72941a1990dbbd3653d673e2845713ce4cc96 Mon Sep 17 00:00:00 2001 From: Drew Stinnett Date: Fri, 15 Apr 2022 16:43:40 -0400 Subject: [PATCH] Build and Publish Homebrew Package (#330) * Initial go at homebrew * Adding end of file new line * Readme cleanup * rename tap owner Co-authored-by: Dustin Decker --- .goreleaser.yml | 10 ++++++++++ README.md | 7 +++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 20ce64b8a..d7164f9bf 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -78,3 +78,13 @@ docker_manifests: image_templates: - ghcr.io/trufflesecurity/{{ .ProjectName }}:{{ .Version }}-amd64 - ghcr.io/trufflesecurity/{{ .ProjectName }}:{{ .Version }}-arm64v8 +brews: + - tap: + owner: trufflesecurity + name: homebrew-trufflehog + token: "{{ .Env.HOMEBREW_TAP_TOKEN }}" + description: "Find credentials all over the place" + name: "trufflehog" + homepage: "https://github.com/trufflesecurity/trufflehog" + install: | + bin.install "trufflehog" diff --git a/README.md b/README.md index 54d24d5b1..46ca6915b 100644 --- a/README.md +++ b/README.md @@ -80,9 +80,12 @@ Here is an example of a [project that does it](https://github.com/Yelp/dumb-init Help with setting up this packaging would be appreciated! -### 5. Brew (help wanted) +### 5. Brew -We'd love to distribute via brew and could use your help. +```bash +brew tap trufflesecurity/trufflehog +brew install trufflehog +``` ## Usage