<commit_before>class Trivy < Formula
  desc "Vulnerability scanner for container images, file systems, and Git repos"
  homepage "https://aquasecurity.github.io/trivy/"
  url "https://github.com/aquasecurity/trivy/archive/v0.30.0.tar.gz"
  sha256 "53e8bb88e0fe9ec88d938a3bb9f6ed04dd69e3dceaf1a1650fea02d961d14201"
  license "Apache-2.0"
  head "https://github.com/aquasecurity/trivy.git", branch: "main"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "37e8ea97d0e092bd44635c6f7ebe46bed8e265557a8e76c766b89524d70d18be"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "9a3324d6dd1d586695b27a87c1dab65efaef20dc51103da34a4c353aa98a98bd"
    sha256 cellar: :any_skip_relocation, monterey:       "2941d285bd1649643687dd276cc3f06dfef23b444166b3db739236a5e9271e8e"
    sha256 cellar: :any_skip_relocation, big_sur:        "d8bd8fada8439d85d793c5d2eeeca0356090ff8bced590faac88c0bcdd241ac9"
    sha256 cellar: :any_skip_relocation, catalina:       "7df5162e4479052ff519f5ba632f7836c98536139439dfb406fd437a3842659d"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "49ee3a643b1f5bf4bd404d00de15d8a15075525b135058ead0097f0ae83b2b2f"
  end

  depends_on "go" => :build

  def install
    system "go", "build", *std_go_args(ldflags: "-s -w -X=main.version=#{version}"), "./cmd/trivy"
  end

  test do
    output = shell_output("#{bin}/trivy image alpine:3.10")<commit_msg>trivy: update 0.30.0 bottle.<commit_after>class Trivy < Formula
  desc "Vulnerability scanner for container images, file systems, and Git repos"
  homepage "https://aquasecurity.github.io/trivy/"
  url "https://github.com/aquasecurity/trivy/archive/v0.30.0.tar.gz"
  sha256 "53e8bb88e0fe9ec88d938a3bb9f6ed04dd69e3dceaf1a1650fea02d961d14201"
  license "Apache-2.0"
  head "https://github.com/aquasecurity/trivy.git", branch: "main"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "17819b3dd073b058dd6199a19e7c32c19bbabd03b99362aa9f262e841fe42710"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "25ea7960b8011204c330d32a4b932671db55c217c44b62e6b021328b2a54e76d"
    sha256 cellar: :any_skip_relocation, monterey:       "d2a6339fe03cf7eb0ffa9ef1c825ed0ac6d2b833758de5e57b758fe488dec4f1"
    sha256 cellar: :any_skip_relocation, big_sur:        "73de83cecb787ea211e7081427707ffa4aaaf15f9c37fd1e3a6fd840312f1ad1"
    sha256 cellar: :any_skip_relocation, catalina:       "8caa39d9a7fb449f2e982c346e0aedf94507159cc5f9b76288de37a53d7baf08"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "8666d48847943cbe3f66f1e71ff2318e348a9cd221fab55496869602598b9120"
  end

  depends_on "go" => :build

  def install
    system "go", "build", *std_go_args(ldflags: "-s -w -X=main.version=#{version}"), "./cmd/trivy"
  end

  test do
    output = shell_output("#{bin}/trivy image alpine:3.10")
{'fraction_non_alphanumeric': 0.09320526503023835, 'fraction_numerical': 0.22518676627534684, 'mean_word_length': 6.012468827930174, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4463689', 'n_tokens_mistral': 1573, 'n_tokens_neox': 1259, 'n_words': 160}