Skip to content
Snippets Groups Projects
Commit 337810bf authored by Mike McQuaid's avatar Mike McQuaid
Browse files

audit: check for master branch tar/zipballs.

These have unstable checksums and aren't the tagged, stable releases
we require.
parent 0c140f09
No related branches found
No related tags found
No related merge requests found
......@@ -1288,6 +1288,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$/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment