From b9652abf88907032d61609016256b56c4d080818 Mon Sep 17 00:00:00 2001 From: Moritz Eck Date: Mon, 22 Jun 2026 08:04:14 +0200 Subject: [PATCH] fix(release): audit Homebrew cask by token --- .github/workflows/release.yml | 2 +- docs/homebrew-release.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d554108..d275915 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -137,7 +137,7 @@ jobs: ruby -pi -e 'gsub(/sha256 "[^"]+"/, "sha256 \"#{ENV.fetch("DMG_SHA256")}\"")' "$tap_dir/Casks/capture-this.rb" cd "$tap_dir" - brew audit --cask --new Casks/capture-this.rb + brew audit --cask --new capture-this git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" diff --git a/docs/homebrew-release.md b/docs/homebrew-release.md index 8d3d57b..457e170 100644 --- a/docs/homebrew-release.md +++ b/docs/homebrew-release.md @@ -52,7 +52,7 @@ The release workflow will: 8. Clone `meck93/homebrew-tap`. 9. Copy `Casks/capture-this.rb` from this repository into the tap. 10. Update `Casks/capture-this.rb` with the release version and DMG checksum. -11. Run `brew audit --cask --new Casks/capture-this.rb`. +11. Run `brew audit --cask --new capture-this` from inside the tap checkout. 12. Commit and push the tap update. The first successful release creates `Casks/capture-this.rb` in the tap if it does not exist yet. @@ -114,7 +114,7 @@ sha256 "DMG_SHA256_FROM_SHASUM" Validate and push: ```bash -brew audit --cask --new Casks/capture-this.rb +brew audit --cask --new capture-this git add Casks/capture-this.rb git commit -m "chore: update CaptureThis to 0.1.0" git push