From 15909383de1aa163bfc78ebf5d54f237b1277dc9 Mon Sep 17 00:00:00 2001 From: Matt Coster Date: Thu, 3 Oct 2024 16:41:09 +0100 Subject: [PATCH] plugins: homebrew: Add "brew audit" to allowlist Signed-off-by: Matt Coster --- plugins/homebrew/brew.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/homebrew/brew.go b/plugins/homebrew/brew.go index ec9d7538b..0b418cd52 100644 --- a/plugins/homebrew/brew.go +++ b/plugins/homebrew/brew.go @@ -15,14 +15,15 @@ func HomebrewCLI() schema.Executable { NeedsAuth: needsauth.IfAll( needsauth.NotForHelpOrVersion(), needsauth.IfAny( - needsauth.ForCommand("search"), + needsauth.ForCommand("audit"), needsauth.ForCommand("bump"), needsauth.ForCommand("bump-cask-pr"), needsauth.ForCommand("bump-formula-pr"), - needsauth.ForCommand("update"), - needsauth.ForCommand("upgrade"), needsauth.ForCommand("install"), needsauth.ForCommand("reinstall"), + needsauth.ForCommand("search"), + needsauth.ForCommand("update"), + needsauth.ForCommand("upgrade"), ), ), Uses: []schema.CredentialUsage{