mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
scanner: remove allowlisted from scan_source
This commit is contained in:
parent
a8bcaa3d70
commit
6899c22f48
1 changed files with 1 additions and 12 deletions
|
@ -383,20 +383,9 @@ def scan_source(build_dir, build=metadata.Build()):
|
||||||
"""
|
"""
|
||||||
count = 0
|
count = 0
|
||||||
|
|
||||||
allowlisted = [
|
|
||||||
'firebase-jobdispatcher', # https://github.com/firebase/firebase-jobdispatcher-android/blob/master/LICENSE
|
|
||||||
'com.firebaseui', # https://github.com/firebase/FirebaseUI-Android/blob/master/LICENSE
|
|
||||||
'geofire-android', # https://github.com/firebase/geofire-java/blob/master/LICENSE
|
|
||||||
'com.yandex.android:authsdk', # https://github.com/yandexmobile/yandex-login-sdk-android/blob/master/LICENSE.txt
|
|
||||||
'com.hypertrack:hyperlog', # https://github.com/hypertrack/hyperlog-android#license
|
|
||||||
]
|
|
||||||
|
|
||||||
def is_allowlisted(s):
|
|
||||||
return any(al in s for al in allowlisted)
|
|
||||||
|
|
||||||
def suspects_found(s):
|
def suspects_found(s):
|
||||||
for n, r in _get_tool().regexs['err_gradle_signatures'].items():
|
for n, r in _get_tool().regexs['err_gradle_signatures'].items():
|
||||||
if r.match(s) and not is_allowlisted(s):
|
if r.match(s):
|
||||||
yield n
|
yield n
|
||||||
|
|
||||||
allowed_repos = [re.compile(r'^https://' + re.escape(repo) + r'/*') for repo in [
|
allowed_repos = [re.compile(r'^https://' + re.escape(repo) + r'/*') for repo in [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue