Skip to content

Commit

Permalink
Merge pull request #169720 from Homebrew/xz-deny-network-access
Browse files Browse the repository at this point in the history
xz, gh: deny network access
  • Loading branch information
BrewTestBot committed Apr 30, 2024
2 parents 3c03027 + c0bca91 commit 2264e00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Formula/g/gh.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class Gh < Formula

depends_on "go" => :build

deny_network_access! [:postinstall, :test]

def install
with_env(
"GH_VERSION" => version.to_s,
Expand Down
2 changes: 2 additions & 0 deletions Formula/x/xz.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ class Xz < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "0736983b952c5273bb5a345008bac7311c2f4b60758d69cc05495d5b050f88f1"
end

deny_network_access! [:build, :postinstall]

def install
system "./configure", *std_configure_args, "--disable-silent-rules", "--disable-nls"
system "make", "check"
Expand Down

0 comments on commit 2264e00

Please sign in to comment.