Skip to content

Commit

Permalink
Update veracode-cli.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
shahid-veracode authored Aug 1, 2024
1 parent 052a382 commit 528428c
Showing 1 changed file with 13 additions and 32 deletions.
45 changes: 13 additions & 32 deletions Formula/veracode-cli.rb
Original file line number Diff line number Diff line change
@@ -1,43 +1,24 @@
class VeracodeCli < Formula
desc "You use the Veracode CLI to perform various actions for testing the security of your applications."
desc "Veracode CLI for security testing of applications"

Check failure on line 2 in Formula/veracode-cli.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

FormulaAudit/Desc: Description shouldn't start with the formula name.
homepage "https://www.veracode.com"
version "2.28.0"
version "2.26.0"
license "MIT"

on_macos do
if OS.mac?
if Hardware::CPU.arm?
url "https://tools.veracode.com/veracode-cli/veracode-cli_2.28.0_macosx_arm64.tar.gz"
sha256 "cad9800ef4b592ea150b9b247f244340cd8b6433be68f5b54fc9c6d072f1454f"
url "https://tools.veracode.com/veracode-cli/veracode-cli_2.26.0_macosx_arm64.tar.gz"
sha256 "d3899199dd2f1376621bea4f2f29cddb6a2448a0b374cebdcb7f11d6f2eea4d9"
elsif Hardware::CPU.intel?
url "https://tools.veracode.com/veracode-cli/veracode-cli_2.28.0_macosx_x86.tar.gz"
sha256 "0557f9353e18f80f32e7e58d202e75efb7d6e0ec83325f8afa49321657216211"
end

def install
bin.install "veracode"
url "https://tools.veracode.com/veracode-cli/veracode-cli_2.26.0_macosx_x86.tar.gz"
sha256 "ba3b01010fa509725f65bd0c4226f325cb9e345c872cdc1c4eae882c84aabedd"
end
elsif OS.linux?
url "https://tools.veracode.com/veracode-cli/veracode-cli_2.26.0_linux_x86.tar.gz"
sha256 "7eb96802d03e20d01760fac823ffa1422c2d5760bbe6063f7503564920c4a1fe"
end

on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://tools.veracode.com/veracode-cli/veracode-cli_2.28.0_linux_x86.tar.gz"
sha256 "dd067965fc8b59f58f6e6aa98fbeda464274f5b9abeefb0f758c0090fd774dd3"

def install
bin.install "veracode"
end
fi
if Hardware::CPU.intel?
url "https://tools.veracode.com/veracode-cli/veracode-cli_2.28.0_linux_x86.tar.gz"
sha256 "dd067965fc8b59f58f6e6aa98fbeda464274f5b9abeefb0f758c0090fd774dd3"

def install
bin.install "veracode"
end
fi
def install
bin.install "veracode"
end

test do
system "#{bin}/veracode --version"
system "#{bin}/veracode", "version"
end
end

0 comments on commit 528428c

Please sign in to comment.