Skip to content

Commit 5c9aa1c

Browse files
authored
Merge branch 'main' into add-amazonlinux-advisories
2 parents d148c12 + 89770c8 commit 5c9aa1c

File tree

282 files changed

+20257
-5977
lines changed

Some content is hidden

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

282 files changed

+20257
-5977
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build aboutcode.hashid Python distributions and publish on PyPI
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "aboutcode.hashid/*"
8+
9+
jobs:
10+
build-and-publish:
11+
name: Build and publish library to PyPI
12+
runs-on: ubuntu-22.04
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: 3.11
21+
22+
- name: Install flot
23+
run: python -m pip install flot --user
24+
25+
- name: Build binary wheel and source tarball
26+
run: python -m flot --pyproject pyproject-aboutcode.hashid.toml --sdist --wheel --output-dir dist/
27+
28+
- name: Publish to PyPI
29+
if: startsWith(github.ref, 'refs/tags')
30+
uses: pypa/gh-action-pypi-publish@release/v1
31+
with:
32+
password: ${{ secrets.PYPI_API_TOKEN_ABOUTCODE_HASHID }}
33+
34+
- name: Upload built archives
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: pypi_archives
38+
path: dist/*

.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

CHANGELOG.rst

Lines changed: 145 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,156 @@
11
Release notes
22
=============
33

4-
Version (next)
4+
5+
Version v36.0.0
6+
---------------------
7+
8+
- Add indexes for models https://github.com/aboutcode-org/vulnerablecode/pull/1701
9+
- Add fixed by package in V2 API https://github.com/aboutcode-org/vulnerablecode/pull/1706
10+
- Add tests for num queries for views https://github.com/aboutcode-org/vulnerablecode/pull/1730
11+
- Add postgresql conf in docker-compose https://github.com/aboutcode-org/vulnerablecode/pull/1733
12+
- Add default postgresql.conf for local docker build https://github.com/aboutcode-org/vulnerablecode/pull/1735
13+
- Add models for CodeFix https://github.com/aboutcode-org/vulnerablecode/pull/1704
14+
- Migrate Alpine Linux importer to aboutcode pipeline https://github.com/aboutcode-org/vulnerablecode/pull/1737
15+
- VCIO-next: Allow CVSS3.1 Severities in NVD https://github.com/aboutcode-org/vulnerablecode/pull/1738
16+
- Add Pipeline to add missing CVSSV3.1 scores https://github.com/aboutcode-org/vulnerablecode/pull/1740
17+
- Add description and reference to the latest release on the homepage https://github.com/aboutcode-org/vulnerablecode/pull/1743
18+
- Use proper apk package type for Alpine https://github.com/aboutcode-org/vulnerablecode/pull/1739
19+
- Optimize vulnerabilities view https://github.com/aboutcode-org/vulnerablecode/pull/1728
20+
- Add CWE support in multiple importers https://github.com/aboutcode-org/vulnerablecode/pull/1526
21+
- Fast content ID migration https://github.com/aboutcode-org/vulnerablecode/pull/1795
22+
- Add captcha for user signup https://github.com/aboutcode-org/vulnerablecode/pull/1822
23+
- Move the package search box to the top by @keshav-space in https://github.com/aboutcode-org/vulnerablecode/pull/1832
24+
25+
26+
Version v35.1.0
27+
---------------------
28+
29+
- Use AboutCode mirror for collecting CISA KEV #1685
30+
- Do not report ghost package as a fix for vulnerability #1679
31+
- Add pipeline to sort packages #1686
32+
- Fix urls for API #1678
33+
34+
35+
Version v35.0.0
36+
---------------------
37+
38+
- Add scores in bulk search V1 API #1675
39+
- Add improver pipeline to flag ghost packages #644 #917 #1395 by @keshav-space in https://github.com/aboutcode-org/vulnerablecode/pull/1533
40+
- Add base pipeline for importers and migrate PyPa importer to aboutcode pipeline by @keshav-space in https://github.com/aboutcode-org/vulnerablecode/pull/1559
41+
- Remove dupe Package.get_non_vulnerable_versions by @pombredanne in https://github.com/aboutcode-org/vulnerablecode/pull/1570
42+
- Import data from GSD #706 by @ziadhany in https://github.com/aboutcode-org/vulnerablecode/pull/787
43+
- Add curl advisories importer by @ambuj-1211 in https://github.com/aboutcode-org/vulnerablecode/pull/1439
44+
- Update dependencies by @TG1999 in https://github.com/aboutcode-org/vulnerablecode/pull/1590
45+
- Bump django from 4.2.0 to 4.2.15 by @dependabot in https://github.com/aboutcode-org/vulnerablecode/pull/1591
46+
- Bump cryptography from 42.0.4 to 43.0.1 by @dependabot in https://github.com/aboutcode-org/vulnerablecode/pull/1582
47+
- Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows by @dependabot in https://github.com/aboutcode-org/vulnerablecode/pull/1581
48+
- Improve export command by @pombredanne in https://github.com/aboutcode-org/vulnerablecode/pull/1571
49+
- Fix typo in Kev requests import by @ziadhany in https://github.com/aboutcode-org/vulnerablecode/pull/1594
50+
- Prepare for release v34.0.1 by @TG1999 in https://github.com/aboutcode-org/vulnerablecode/pull/1595
51+
- Bump upload-artifact to v4 by @keshav-space in https://github.com/aboutcode-org/vulnerablecode/pull/1596
52+
- Migrate Npm importer to aboutcode pipeline by @keshav-space in https://github.com/aboutcode-org/vulnerablecode/pull/1574
53+
- Use correct regex for CVE by @pombredanne in https://github.com/aboutcode-org/vulnerablecode/pull/1599
54+
- Migrate Nginx importer to aboutcode pipeline by @keshav-space in https://github.com/aboutcode-org/vulnerablecode/pull/1575
55+
- Migrate GitLab importer to aboutcode pipeline by @keshav-space in https://github.com/aboutcode-org/vulnerablecode/pull/1580
56+
- Migrate GitHub importer to aboutcode pipeline by @keshav-space in https://github.com/aboutcode-org/vulnerablecode/pull/1584
57+
- Migrate NVD importer to aboutcode pipeline by @keshav-space in https://github.com/aboutcode-org/vulnerablecode/pull/1587
58+
- Match affected and fixed-by Packages by @johnmhoran in https://github.com/aboutcode-org/vulnerablecode/pull/1528
59+
- Add management command to commit exported data by @keshav-space in https://github.com/aboutcode-org/vulnerablecode/pull/1600
60+
- Add support to Exploits model by @ziadhany in https://github.com/aboutcode-org/vulnerablecode/pull/1562
61+
- Fix 500 Server Error with DRF browsable API and resolve blank Swagger API documentation by @keshav-space in https://github.com/aboutcode-org/vulnerablecode/pull/1603
62+
- Release v34.0.2 by @TG1999 in https://github.com/aboutcode-org/vulnerablecode/pull/1604
63+
- Bump VCIO version by @TG1999 in https://github.com/aboutcode-org/vulnerablecode/pull/1605
64+
- Bump django from 4.2.15 to 4.2.16 by @dependabot in https://github.com/aboutcode-org/vulnerablecode/pull/1608
65+
- Bump fetchcode from v0.3.0 to v0.6.0 by @keshav-space in https://github.com/aboutcode-org/vulnerablecode/pull/1607
66+
- Use 4-tier system for storing package metadata by @keshav-space in https://github.com/aboutcode-org/vulnerablecode/pull/1609
67+
- Fix vers range crash by @pombredanne in https://github.com/aboutcode-org/vulnerablecode/pull/1598
68+
- Add GitHub action to publish aboutcode.hashid PyPI by @keshav-space in https://github.com/aboutcode-org/vulnerablecode/pull/1615
69+
- Segregate PackageRelatedVulnerability model to new models by @TG1999 in https://github.com/aboutcode-org/vulnerablecode/pull/1612
70+
- Add documentation for new pipeline design by @keshav-space in https://github.com/aboutcode-org/vulnerablecode/pull/1621
71+
- Fix 500 error in /api/cpes endpoint by @keshav-space in https://github.com/aboutcode-org/vulnerablecode/pull/1629
72+
- Migrate pysec importer to aboutcode pipeline by @keshav-space in https://github.com/aboutcode-org/vulnerablecode/pull/1628
73+
- Avoid memory exhaustion during data migration by @keshav-space in https://github.com/aboutcode-org/vulnerablecode/pull/1630
74+
- Add support for Calculating Risk in VulnerableCode by @ziadhany in https://github.com/aboutcode-org/vulnerablecode/pull/1593
75+
- Bulk create in migrations by @TG1999 in https://github.com/aboutcode-org/vulnerablecode/pull/1640
76+
- Update README.rst by @TG1999 in https://github.com/aboutcode-org/vulnerablecode/pull/1641
77+
- Prepare for release v34.1.0 by @TG1999 in https://github.com/aboutcode-org/vulnerablecode/pull/1642
78+
- Add V2 API endpoints by @TG1999 in https://github.com/aboutcode-org/vulnerablecode/pull/1631
79+
- Prepare for release v34.2.0 by @TG1999 in https://github.com/aboutcode-org/vulnerablecode/pull/1647
80+
- Refactor severity score model and fix incorrect suse scores by @keshav-space in https://github.com/aboutcode-org/vulnerablecode/pull/1636
81+
- Add bulk search in v2 by @TG1999 in https://github.com/aboutcode-org/vulnerablecode/pull/1649
82+
- Prepare release v34.3.0 by @TG1999 in https://github.com/aboutcode-org/vulnerablecode/pull/1652
83+
- Add `on_failure` to handle cleanup during pipeline failure by @keshav-space in https://github.com/aboutcode-org/vulnerablecode/pull/1651
84+
- Fix API bug by @TG1999 in https://github.com/aboutcode-org/vulnerablecode/pull/1654
85+
- Add reference score to package endpoint by @keshav-space in https://github.com/aboutcode-org/vulnerablecode/pull/1655
86+
- Prepare for release v34.3.2 by @TG1999 in https://github.com/aboutcode-org/vulnerablecode/pull/1656
87+
- Add support for storing exploitability and weighted severity by @ziadhany in https://github.com/aboutcode-org/vulnerablecode/pull/1646
88+
- Avoid migrations on version bumps by @keshav-space in https://github.com/aboutcode-org/vulnerablecode/pull/1660
89+
- Prepare v35.0.0rc1 by @TG1999 in https://github.com/aboutcode-org/vulnerablecode/pull/1664
90+
91+
92+
93+
Version v35.0.0rc1
94+
---------------------
95+
96+
- Add support for storing exploitability and weighted severity #1646
97+
- Avoid migrations on version bumps #1660
98+
99+
100+
Version v34.3.2
101+
----------------
102+
103+
- HOTFIX: Add reference score to package endpoint #1655
104+
105+
106+
Version v34.3.1
107+
----------------
108+
109+
- HOTFIX: Fix API bug #1654
110+
111+
112+
Version v34.3.0
113+
-----------------
114+
115+
- Add bulk search in v2 #1649
116+
- Refactor severity score model and fix incorrect suse scores #1636
117+
118+
119+
Version v34.2.0
120+
-------------------
121+
122+
- Add V2 API endpoints #1631
123+
124+
125+
Version v34.1.0
126+
-------------------
127+
128+
- Add support for Calculating Package Vulnerability Risk #1593
129+
- Migrate pysec importer to aboutcode pipeline #1628
130+
- Fix 500 error in /api/cpes endpoint #1629
131+
- Add documentation for new pipeline design #1621
132+
- Segregate PackageRelatedVulnerability model to new models #1612
133+
- Add GitHub action to publish aboutcode.hashid PyPI #1615
134+
- Fix vers range crash #1598
135+
- Use 4-tier system for storing package metadata #1609
136+
137+
138+
Version v34.0.2
139+
-------------------
140+
141+
- Add management command to commit exported vulnerability data (#1600)
142+
- Fix API 500 error (#1603)
143+
144+
145+
Version v34.0.1
5146
-------------------
6147

7148
- Add Pipeline to flag ghost packages (#1533)
8149
- Add logging configuration (#1533)
9150
- Drop support for python 3.8 (#1533)
151+
- Drop using docker-compose and use the built-in "docker compose" instead
152+
- Upgrade core dependencies including Django and Rest Framework
153+
- Fix typo in KEV improver (#1594)
10154

11155

12156
Version v34.0.0

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ else
4242
SUDO_POSTGRES=
4343
endif
4444

45+
ifeq ($(UNAME), Darwin)
46+
GET_SECRET_KEY=`head /dev/urandom | base64 | head -c50`
47+
endif
48+
4549
virtualenv:
4650
@echo "-> Bootstrap the virtualenv with PYTHON_EXE=${PYTHON_EXE}"
4751
@${PYTHON_EXE} ${VIRTUALENV_PYZ} --never-download --no-periodic-update ${VENV}
@@ -125,13 +129,13 @@ bump:
125129

126130
docs:
127131
rm -rf docs/_build/
128-
@${ACTIVATE} sphinx-build docs/ docs/_build/
132+
@${ACTIVATE} sphinx-build docs/source docs/_build/
129133

130134
docker-images:
131135
@echo "-> Build Docker services"
132-
docker-compose build
136+
docker compose build
133137
@echo "-> Pull service images"
134-
docker-compose pull
138+
docker compose pull
135139
@echo "-> Save the service images to a compressed tar archive in the dist/ directory"
136140
@mkdir -p dist/
137141
@docker save postgres vulnerablecode_vulnerablecode nginx | gzip > dist/vulnerablecode-images-`git describe --tags`.tar.gz

0 commit comments

Comments
 (0)