aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/dev-cmd')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index 3095372a2..a6ca1f7cb 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -1290,6 +1290,11 @@ class ResourceAuditor
problem "Please use https:// for #{u}"
end
+ # Check for master branch GitHub archives.
+ urls.grep(%r{^https://github\.com/.*archive/master\.(tar\.gz|zip)$}) do
+ problem "Use versioned rather than branch tarballs for stable checksums."
+ end
+
# Use new-style archive downloads
urls.each do |u|
next unless u =~ %r{https://.*github.*/(?:tar|zip)ball/} && u !~ /\.git$/