Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
1b1cfb7
added verbose plural name for PackageRelatedVulnerability model
Jan 5, 2021
ee6e133
Merge branch 'main' into main
Shivam-316 Jan 8, 2021
bbb86c6
added verbose plural name for PackageRelatedVulnerability model
Jan 5, 2021
a75a694
Merge branch 'main' of https://github.com/Shivam-316/vulnerablecode i…
Jan 10, 2021
f7716f8
now ignoring vscode specific directory
Jan 10, 2021
167734e
Verbose plural name for PackageRelatedVulnerabilities
Jan 10, 2021
7178fe7
Verbose plural name for PackageRelatedVulnerabilities
Jan 10, 2021
7d6b567
use dephell_specifier for version ranges and sort imports
tushar912 Dec 9, 2020
1e8e50d
added HexVersionAPI and mock test it
tushar912 Dec 12, 2020
0731cb9
fixed code style
tushar912 Dec 12, 2020
71fa4e2
initialize hexapi with cache and sort imports
tushar912 Dec 18, 2020
42decdd
Add tests for nginx importers
sbs2001 Dec 18, 2020
720e383
Add tests for postgresql importer
sbs2001 Dec 18, 2020
fb4740d
add license and categorize left versions as vuln
tushar912 Dec 21, 2020
0859216
change name of function get_version_from range and add comments in it
tushar912 Dec 22, 2020
fcfb694
remove unused import and add name to authors and add importer to sources
tushar912 Dec 25, 2020
4996545
added verbose plural name for PackageRelatedVulnerability model
Jan 5, 2021
952fe38
Bump lxml from 4.3.3 to 4.6.2
dependabot[bot] Jan 7, 2021
68d200e
now ignoring vscode specific directory
Jan 10, 2021
d865611
Verbose plural name for PackageRelatedVulnerabilities
Jan 10, 2021
a7b8cb5
Merge branch 'main' of https://github.com/Shivam-316/vulnerablecode i…
Jan 11, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ bin
include
lib64
share
Pipfile

# editors
.vscode/

# pytest
.pytest_cache
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python.pythonPath": "C:\\Users\\Shivam Sharma\\.virtualenvs\\vulnerablecode-MrLwLfAt\\Scripts\\python.exe"
}
66 changes: 66 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
aiohttp = "==3.6.2"
asgiref = "==3.2.7"
attrs = "==19.3.0"
backcall = "==0.1.0"
beautifulsoup4 = "==4.7.1"
cached-property = "==1.5.1"
cffi = "==1.14.0"
contextlib2 = "==0.5.5"
decorator = "==4.4.2"
dephell-specifier = "==0.2.1"
dj-database-url = "==0.4.2"
django = "==3.0.7"
django-filter = "==2.2.0"
djangorestframework = "==3.11.0"
django-widget-tweaks = "==1.4.8"
drf-yasg = "==1.17.1"
gunicorn = "==19.7.1"
importlib-metadata = "==1.3.0"
ipython = "==7.13.0"
ipython-genutils = "==0.2.0"
jedi = "==0.17.0"
lxml = "==4.3.3"
more-itertools = "==8.0.2"
packageurl-python = "==0.9.3"
parso = "==0.7.0"
pexpect = "==4.8.0"
pickleshare = "==0.7.5"
pluggy = "==0.13.1"
prompt-toolkit = "==3.0.5"
psycopg2 = "==2.8.4"
ptyprocess = "==0.6.0"
py = "==1.8.0"
pycodestyle = "==2.5.0"
pycparser = "==2.20"
pygit2 = "==1.2.0"
pygments = "==2.6.1"
pyparsing = "==2.4.5"
pytest = "==5.3.2"
pytest-dependency = "==0.4.0"
pytest-django = "==3.7.0"
pytest-mock = "==1.13.0"
python-dateutil = "==2.8.1"
pytz = "==2019.3"
schema = "==0.7.1"
six = "==1.13.0"
soupsieve = "==1.9.5"
sqlparse = "==0.3.0"
tqdm = "==4.41.1"
traitlets = "==4.3.3"
wcwidth = "==0.1.7"
whitenoise = "==5.0.1"
zipp = "==0.6.0"
requests = "==2.23.0"
toml = "==0.10.2"
pyyaml = "==5.3.1"

[dev-packages]

[requires]
python_version = "3.9"
3 changes: 3 additions & 0 deletions vulnerabilities/importers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,7 @@
from vulnerabilities.importers.suse_backports import SUSEBackportsDataSource
from vulnerabilities.importers.ubuntu import UbuntuDataSource
from vulnerabilities.importers.ubuntu_usn import UbuntuUSNDataSource
<<<<<<< HEAD
=======
from vulnerabilities.importers.apache_tomcat import ApacheTomcatDataSource
>>>>>>> 167734ec853c305a0b2c833512f14a95d4a1a281
11 changes: 11 additions & 0 deletions vulnerabilities/importers/elixir_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
from vulnerabilities.data_source import Advisory
from vulnerabilities.data_source import Reference
from vulnerabilities.package_managers import HexVersionAPI
<<<<<<< HEAD
=======
from vulnerabilities.helpers import load_yaml
>>>>>>> 167734ec853c305a0b2c833512f14a95d4a1a281


class ElixirSecurityDataSource(GitDataSource):
Expand Down Expand Up @@ -142,3 +145,11 @@ def process_file(self, path):
cve_id=cve_id,
vuln_references=vuln_references,
)
<<<<<<< HEAD


def load_yaml(path):
with open(path) as f:
return yaml.safe_load(f)
=======
>>>>>>> 167734ec853c305a0b2c833512f14a95d4a1a281
3 changes: 2 additions & 1 deletion vulnerabilities/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.0.7 on 2020-09-14 06:17
# Generated by Django 3.0.7 on 2021-01-10 15:11

import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
Expand Down Expand Up @@ -64,6 +64,7 @@ class Migration(migrations.Migration):
('vulnerability', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='vulnerabilities.Vulnerability')),
],
options={
'verbose_name_plural': 'PackageRelatedVulnerabilities',
'unique_together': {('package', 'vulnerability')},
},
),
Expand Down
1 change: 1 addition & 0 deletions vulnerabilities/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ class PackageRelatedVulnerability(models.Model):

class Meta:
unique_together = ("package", "vulnerability")
verbose_name_plural = "PackageRelatedVulnerabilities"


class ImportProblem(models.Model):
Expand Down