audit: enforce https for Debian's anonscm

This commit is contained in:
Dominyk Tiller 2016-08-27 03:07:10 +01:00
parent 8bb3dda243
commit 4422bd1f34
No known key found for this signature in database
GPG Key ID: FE19AEFCF658C6F6

View File

@ -1192,6 +1192,7 @@ class ResourceAuditor
%r{^http://tools\.ietf\.org/},
%r{^http://launchpad\.net/},
%r{^http://bitbucket\.org/},
%r{^http://anonscm\.debian\.org/},
%r{^http://cpan\.metacpan\.org/},
%r{^http://hackage\.haskell\.org/},
%r{^http://(?:[^/]*\.)?archive\.org},
@ -1202,6 +1203,8 @@ class ResourceAuditor
problem "#{p} should be `https://cpan.metacpan.org/#{$1}`"
when %r{^(http|ftp)://ftp\.gnome\.org/pub/gnome/(.*)}i
problem "#{p} should be `https://download.gnome.org/#{$2}`"
when %r{^git://anonscm\.debian\.org/users/(.*)}i
problem "#{p} should be `https://anonscm.debian.org/git/users/#{$1}`"
end
end