Merge pull request #7133 from issyl0/audit-master-formula-patches-urls

rubocops/patches: Make more GitHub patch locations enforce revisions
This commit is contained in:
Issy Long 2020-03-09 16:43:05 +00:00 committed by GitHub
commit a6158d621b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,6 +39,7 @@ module RuboCop
end end
gh_patch_patterns = Regexp.union([%r{/raw\.github\.com/}, gh_patch_patterns = Regexp.union([%r{/raw\.github\.com/},
%r{/raw\.githubusercontent\.com/},
%r{gist\.github\.com/raw}, %r{gist\.github\.com/raw},
%r{gist\.github\.com/.+/raw}, %r{gist\.github\.com/.+/raw},
%r{gist\.githubusercontent\.com/.+/raw}]) %r{gist\.githubusercontent\.com/.+/raw}])