Skip to content

Commit 4ee75dd

Browse files
committed
Merge remote-tracking branch 'origin/main' into fix-ver-range
2 parents 5635279 + 094c2bf commit 4ee75dd

File tree

360 files changed

+47544
-27639
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

360 files changed

+47544
-27639
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
max-parallel: 4
1111
matrix:
12-
python-version: [3.8]
12+
python-version: [3.9]
1313

1414
steps:
1515
- name: Checkout code

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
max-parallel: 4
3131
matrix:
32-
python-version: ["3.8", "3.9", "3.10"]
32+
python-version: ["3.9", "3.10", "3.11"]
3333

3434
steps:
3535
- name: Checkout code

.github/workflows/pypi-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: python -m build --sdist --wheel --outdir dist/
3838

3939
- name: Upload built archives
40-
uses: actions/upload-artifact@v3
40+
uses: actions/upload-artifact@v4
4141
with:
4242
name: pypi_archives
4343
path: dist/*
@@ -51,7 +51,7 @@ jobs:
5151

5252
steps:
5353
- name: Download built archives
54-
uses: actions/download-artifact@v3
54+
uses: actions/download-artifact@v4
5555
with:
5656
name: pypi_archives
5757
path: dist
@@ -71,7 +71,7 @@ jobs:
7171

7272
steps:
7373
- name: Download built archives
74-
uses: actions/download-artifact@v3
74+
uses: actions/download-artifact@v4
7575
with:
7676
name: pypi_archives
7777
path: dist

.gitignore

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,14 @@ coverage.xml
4646
*.log
4747
local_settings.py
4848

49-
# Sphinx documentation
50-
docs/_build/
49+
# Sphinx
50+
docs/_build
51+
docs/bin
52+
docs/build
53+
docs/include
54+
docs/Lib
55+
doc/pyvenv.cfg
56+
pyvenv.cfg
5157

5258
# PyBuilder
5359
target/
@@ -103,3 +109,13 @@ Pipfile
103109
*.bak
104110
/.cache/
105111
/tmp/
112+
113+
# pyenv
114+
/.python-version
115+
/man/
116+
/.pytest_cache/
117+
lib64
118+
tcl
119+
120+
# Ignore Jupyter Notebook related temp files
121+
.ipynb_checkpoints/

.readthedocs.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,25 @@
55
# Required
66
version: 2
77

8+
# Build in latest ubuntu/python
9+
build:
10+
os: ubuntu-22.04
11+
tools:
12+
python: "3.11"
13+
14+
# Build PDF & ePub
15+
formats:
16+
- epub
17+
- pdf
18+
819
# Where the Sphinx conf.py file is located
920
sphinx:
1021
configuration: docs/source/conf.py
1122

12-
# Setting the doc build requirements
23+
# Setting the python version and doc build requirements
1324
python:
14-
version: "3.7"
1525
install:
16-
- requirements: docs/requirements.txt
26+
- method: pip
27+
path: .
28+
extra_requirements:
29+
- dev

CHANGELOG.rst

Lines changed: 168 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,172 @@
11
Release notes
22
=============
33

4+
Version v34.0.1
5+
-------------------
6+
7+
- Add Pipeline to flag ghost packages (#1533)
8+
- Add logging configuration (#1533)
9+
- Drop support for python 3.8 (#1533)
10+
- Drop using docker-compose and use the built-in "docker compose" instead
11+
- Upgrade core dependencies including Django and Rest Framework
12+
- Fix typo in KEV improver (#1594)
13+
14+
15+
Version v34.0.0
16+
-------------------
17+
18+
- Improve API performance.
19+
- Add severity range score in API.
20+
- Refactor GitlabDataSource to work with browser extension
21+
22+
23+
Version v34.0.0rc5
24+
-------------------
25+
26+
- Add safetydb importer.
27+
- Add missing width setting for the table in the vulnerability details UI.
28+
- Add KEV support.
29+
- Add UI template for API.
30+
- Use VersionRange.normalize to compare advisory.
31+
- Use integer column to display score.
32+
- Add support for CVSSv4 & SSVC and import the data using vulnrichment.
33+
- Add support for reference_type in the API.
34+
- Add API improvements for the package endpoint.
35+
36+
37+
Version v34.0.0rc4
38+
-------------------
39+
40+
- Drop migration for removing duplicated changelogs.
41+
42+
43+
Version v34.0.0rc3
44+
-------------------
45+
46+
- Add resource URL to the vulnerability and package details view in the API serializers (#1423)
47+
- Add support for all osv ecosystems (#926)
48+
- Add RubyImporter to git_importer test_git_importer_clone (#799)
49+
- Remove duplicated changelogs (#1400)
50+
- Fix Encoding Type in Fireeye Importer (#1404)
51+
- Add license_url for GitHub Importer (#1392)
52+
- Add support for CVSS vectors display (#1312)
53+
54+
55+
Version v34.0.0rc2
56+
-------------------
57+
58+
- We updated package-url models, WARNING: in next major version of
59+
vulnerablecode i.e v35.0.0 qualifiers will be of type ``string`` and not ``dict``.
60+
- We added changelog and dates on packages and vulnerabilities.
61+
- We fixed table borders in Vulnerability details UI #1356 (#1358)
62+
- We added robots.txt in views.
63+
- We fixed import runner's process_inferences (#1360)
64+
- We fixed debian OVAL importer (#1361)
65+
- We added graph model diagrams #977(#1350)
66+
- We added endpoint for purl lookup (#1359)
67+
- We fixed swagger API docs generation (#1366)
68+
- Fix issues https://github.com/nexB/vulnerablecode/issues/1385, https://github.com/nexB/vulnerablecode/issues/1387
69+
70+
71+
Version v34.0.0rc1
72+
-------------------
73+
74+
- We updated package-url models, WARNING: in next major version of
75+
vulnerablecode i.e v35.0.0 qualifiers will be of type ``string`` and not ``dict``.
76+
- We added changelog and dates on packages and vulnerabilities.
77+
- We fixed table borders in Vulnerability details UI #1356 (#1358)
78+
- We added robots.txt in views.
79+
- We fixed import runner's process_inferences (#1360)
80+
- We fixed debian OVAL importer (#1361)
81+
- We added graph model diagrams #977(#1350)
82+
- We added endpoint for purl lookup (#1359)
83+
- We fixed swagger API docs generation (#1366)
84+
85+
86+
Version v33.6.5
87+
-------------------
88+
89+
- We added /var/www/html as volume in nginx Docker compose (#1373).
90+
91+
92+
Version v33.6.4
93+
-------------------
94+
95+
- We added /var/www/html as volume in Docker compose (#1371).
96+
97+
98+
Version v33.6.3
99+
----------------
100+
101+
- We updated RTD build configuration.
102+
- We added importer for OSS-Fuzz.
103+
- We removed vulnerabilities with empty aliases.
104+
- We fixed search encoding issue https://github.com/nexB/vulnerablecode/issues/1336.
105+
- We added middleware to ban "bytedance" user-agent.
106+
107+
108+
Version v33.6.2
109+
----------------
110+
111+
- We added note about CSRF_TRUSTED_ORIGINS.
112+
- We added proper acknowledgements for NGI projects.
113+
- We added throttling for anonymous users.
114+
115+
Version v33.6.1
116+
----------------
117+
118+
- We added pagination to valid versions improver.
119+
120+
121+
Version v33.6.0
122+
----------------
123+
124+
- We added support to write packages and vulnerabilities at the time of import.
125+
126+
127+
Version v33.5.0
128+
----------------
129+
130+
- We fixed a text-overflow issue in the Essentials tab of the Vulnerability details template.
131+
- We added clickable links to the Essentials tab of the Vulnerability details template that enable
132+
the user to navigate to the Fixed by packages tab and the Affected packages tab.
133+
- We fixed severity range issue for handling unknown scores.
134+
135+
Version v33.4.0
136+
----------------
137+
138+
- We added importer specific improvers and removed default improver
139+
additionally improve recent advisories first.
140+
141+
142+
Version v33.3.0
143+
----------------
144+
145+
- We filtered out the weakness that are not presented in the
146+
cwe2.database before passing them into the vulnerability details view.
147+
148+
149+
Version v33.2.0
150+
-----------------
151+
152+
- We fixed NVD importer to import the latest data by adding weakness
153+
in unique content ID for advisories.
154+
155+
156+
Version v33.1.0
157+
-----------------
158+
159+
- We have paginated the default improver and added keyboard interrupt support for import and improve processes.
160+
- We bumped PyYaml to 6.0.1 and saneyaml to 0.6.0 and dropped docker-compose.
161+
162+
163+
Version v33.0.0
164+
-----------------
165+
166+
- We have dropped ``unresolved_vulnerabilities`` from /api/package endpoint API response.
167+
- We have added missing quotes for href values in template.
168+
- We have fixed merge functionality of AffectedPackage.
169+
4170

5171
Version v32.0.1
6172
-----------------
@@ -20,9 +186,9 @@ Version v32.0.0rc4
20186
-------------------
21187

22188
- We added loading of env for GitHub datasource in vulntotal.
23-
- We fixed import process in github importer in vulnerablecode reported here
189+
- We fixed import process in github importer in vulnerablecode reported here
24190
https://github.com/nexB/vulnerablecode/issues/1142.
25-
- We added an improver to get all package versions
191+
- We added an improver to get all package versions
26192
of all ecosystems for a range of affected packages.
27193
- We added documentation for configuring throttling rate for API endpoints.
28194
- We fixed kbmsr2019 importer.

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ docs:
129129

130130
docker-images:
131131
@echo "-> Build Docker services"
132-
docker-compose build
132+
docker compose build
133133
@echo "-> Pull service images"
134-
docker-compose pull
134+
docker compose pull
135135
@echo "-> Save the service images to a compressed tar archive in the dist/ directory"
136136
@mkdir -p dist/
137137
@docker save postgres vulnerablecode_vulnerablecode nginx | gzip > dist/vulnerablecode-images-`git describe --tags`.tar.gz

README.rst

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,18 @@ Getting started
6666
Run with Docker
6767
^^^^^^^^^^^^^^^^
6868

69-
First install docker and docker-compose, then run::
69+
First install docker, then run::
7070

7171
git clone https://github.com/nexB/vulnerablecode.git && cd vulnerablecode
7272
make envfile
73-
docker-compose build
74-
docker-compose up -d
75-
docker-compose run vulnerablecode ./manage.py import --list
73+
docker compose build
74+
docker compose up -d
75+
docker compose run vulnerablecode ./manage.py import --list
7676

7777
Then run an importer for nginx advisories (which is small)::
7878

79-
docker-compose exec vulnerablecode ./manage.py import vulnerabilities.importers.nginx.NginxImporter
80-
docker-compose exec vulnerablecode ./manage.py improve --all
79+
docker compose exec vulnerablecode ./manage.py import vulnerabilities.importers.nginx.NginxImporter
80+
docker compose exec vulnerablecode ./manage.py improve --all
8181

8282
At this point, the VulnerableCode app and API should be up and running with
8383
some data at http://localhost
@@ -105,6 +105,7 @@ On a Debian system, use this::
105105
git clone https://github.com/nexB/vulnerablecode.git && cd vulnerablecode
106106
make dev envfile postgres
107107
make test
108+
source venv/bin/activate
108109
./manage.py import vulnerabilities.importers.nginx.NginxImporter
109110
./manage.py improve --all
110111
make run
@@ -145,3 +146,20 @@ See https://creativecommons.org/licenses/by-sa/4.0/legalcode for the license tex
145146
See https://github.com/nexB/vulnerablecode for support or download.
146147

147148
See https://aboutcode.org for more information about nexB OSS projects.
149+
150+
Acknowledgements
151+
^^^^^^^^^^^^^^^^
152+
153+
This project was funded through the NGI0 PET Fund, a fund established by
154+
NLnet with financial support from the European Commission's Next Generation
155+
Internet programme, under the aegis of DG Communications Networks, Content
156+
and Technology under grant agreement No 825310.
157+
158+
https://nlnet.nl/project/VulnerableCode/
159+
160+
This project was funded through the NGI0 Discovery Fund, a fund established
161+
by NLnet with financial support from the European Commission's Next Generation
162+
Internet programme, under the aegis of DG Communications Networks, Content
163+
and Technology under grant agreement No 825322.
164+
165+
https://nlnet.nl/project/vulnerabilitydatabase/

SOURCES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
+----------------+------------------------------------------------------------------------------------------------------+----------------------------------------------------+
1414
|ruby | https://github.com/rubysec/ruby-advisory-db.git |ruby gems |
1515
+----------------+------------------------------------------------------------------------------------------------------+----------------------------------------------------+
16-
|ubuntu | https://people.canonical.com/~ubuntu-security/oval/ |ubuntu packages |
16+
|ubuntu | |ubuntu packages |
1717
+----------------+------------------------------------------------------------------------------------------------------+----------------------------------------------------+
1818
|retiredotnet | https://github.com/RetireNet/Packages.git |.NET packages |
1919
+----------------+------------------------------------------------------------------------------------------------------+----------------------------------------------------+

aboutcode/hashid/README.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
aboutcode.hashid
2+
==================
3+
4+
This is a library of utilities to compute ids and file paths for AboutCode using VCID and PURLs.
5+
6+
License
7+
-------
8+
9+
Copyright (c) nexB Inc. and others. All rights reserved.
10+
11+
SPDX-License-Identifier: Apache-2.0
12+
13+
See https://github.com/aboutcode-org/vulnerablecode for support or download.
14+
15+
See https://aboutcode.org for more information about AboutCode OSS projects.

0 commit comments

Comments
 (0)