Skip to content

Commit 4f5caea

Browse files
committed
Fix config for SafetyDB importer
The migration that adds the SafetyDB importer used the URL of the git repository. However the importer is not actually based on GitDataSource, since the repository only contains a single file with all security data, so there is no advantage over just downloading the current version from master via HTTPS. Signed-off-by: Haiko Schol <hs@haikoschol.com>
1 parent 1f40a03 commit 4f5caea

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

vulnerabilities/migrations/0006_safetydb_importer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@
2525

2626
def add_safetydb_importer(apps, _):
2727
Importer = apps.get_model('vulnerabilities', 'Importer')
28+
url = 'https://raw.githubusercontent.com/pyupio/safety-db/master/data/insecure_full.json'
2829

2930
Importer.objects.create(
3031
name='safetydb',
3132
license='',
3233
last_run=None,
3334
data_source='SafetyDbDataSource',
3435
data_source_cfg={
35-
'url': 'https://github.com/pyupio/safety-db.git',
36+
'url': url,
3637
},
3738
)
3839

0 commit comments

Comments
 (0)