Skip to content

Commit b80ccc0

Browse files
authored
Merge branch 'main' into add-rockylinux-advisories
2 parents 2ad0f01 + 590c91a commit b80ccc0

File tree

175 files changed

+1856
-1154
lines changed

Some content is hidden

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

175 files changed

+1856
-1154
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/*

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ bump:
125125

126126
docs:
127127
rm -rf docs/_build/
128-
@${ACTIVATE} sphinx-build docs/ docs/_build/
128+
@${ACTIVATE} sphinx-build docs/source docs/_build/
129129

130130
docker-images:
131131
@echo "-> Build Docker services"

README.rst

Lines changed: 157 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ we are trying to change this and evolve the status quo in a few other areas!
3838

3939
Package URL themselves were designed first in ScanCode and VulnerableCode
4040
and are now a de-facto standard for vulnerability management and package references.
41-
4241
See https://github.com/package-url/purl-spec
4342

4443
The VulnerableCode project is a FOSS community resource to help improve the
@@ -47,34 +46,39 @@ security of the open source software ecosystem and its users at large.
4746
VulnerableCode consists of a database and the tools to collect, refine and keep
4847
the database current.
4948

50-
.. warning::
51-
VulnerableCode is under active development and is not yet fully
52-
usable.
5349

54-
Read more about VulnerableCode https://vulnerablecode.readthedocs.org/
50+
.. pull-quote::
51+
**Warning**
52+
53+
VulnerableCode is under active development and is not yet fully
54+
usable.
55+
5556

56-
VulnerableCode is financially supported by NLnet, nexB, Google (through the
57-
GSoC) and the active contributions of several volunteers.
57+
Read more about VulnerableCode https://vulnerablecode.readthedocs.org/
5858

5959
VulnerableCode tech stack is Python, Django, PostgreSQL, nginx and Docker and
6060
several libraries.
6161

6262

6363
Getting started
64-
---------------
64+
===============
6565

6666
Run with Docker
67-
^^^^^^^^^^^^^^^^
67+
---------------
6868

69-
First install docker, then run::
69+
First install docker, then run
70+
71+
.. code:: bash
7072
7173
git clone https://github.com/nexB/vulnerablecode.git && cd vulnerablecode
7274
make envfile
7375
docker compose build
7476
docker compose up -d
7577
docker compose run vulnerablecode ./manage.py import --list
7678
77-
Then run an importer for nginx advisories (which is small)::
79+
Then run an importer for nginx advisories (which is small)
80+
81+
.. code:: bash
7882
7983
docker compose exec vulnerablecode ./manage.py import vulnerabilities.importers.nginx.NginxImporter
8084
docker compose exec vulnerablecode ./manage.py improve --all
@@ -84,22 +88,29 @@ some data at http://localhost
8488

8589

8690
Populate VulnerableCode database
87-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
91+
--------------------------------
8892

8993
VulnerableCode data collection works in two steps: importing data from multiple
9094
sources and then refining and improving how package and software vulnerabilities
9195
are related.
9296

93-
To run all importers and improvers use this::
97+
To run all importers and improvers use this
98+
99+
.. code:: bash
94100
95101
./manage.py import --all
102+
103+
.. code:: bash
104+
96105
./manage.py improve --all
97106
98107
99108
Local development installation
100-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
109+
------------------------------
110+
111+
On a Debian system, use this
101112

102-
On a Debian system, use this::
113+
.. code:: bash
103114
104115
sudo apt-get install python3-venv python3-dev postgresql libpq-dev build-essential
105116
git clone https://github.com/nexB/vulnerablecode.git && cd vulnerablecode
@@ -112,22 +123,9 @@ On a Debian system, use this::
112123
113124
At this point, the VulnerableCode app and API is up at http://127.0.0.1:8001/
114125

115-
Interface
116-
^^^^^^^^^^
117-
118-
119-
VulnerableCode comes with a minimal web UI:
120-
121-
.. image:: vulnerablecode-ui.png
122-
123-
And a JSON API and its minimal web documentation:
124-
125-
.. image:: vulnerablecode-json-api.png
126-
.. image:: vulnerablecode-api-doc.png
127-
128126

129127
License
130-
^^^^^^^^^^
128+
========
131129

132130
Copyright (c) nexB Inc. and others. All rights reserved.
133131

@@ -147,19 +145,137 @@ See https://github.com/nexB/vulnerablecode for support or download.
147145

148146
See https://aboutcode.org for more information about nexB OSS projects.
149147

150-
Acknowledgements
151-
^^^^^^^^^^^^^^^^
152148

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.
149+
Acknowledgements, Funding, Support and Sponsoring
150+
=================================================
151+
152+
This project is funded, supported and sponsored by:
153+
154+
- Generous support and contributions from users like you!
155+
- the European Commission NGI programme
156+
- the NLnet Foundation
157+
- the Swiss State Secretariat for Education, Research and Innovation (SERI)
158+
- Google, including the Google Summer of Code and the Google Seasons of Doc programmes
159+
- Mercedes-Benz Group
160+
- Microsoft and Microsoft Azure
161+
- AboutCode ASBL
162+
- nexB Inc.
163+
164+
165+
166+
|europa| |dgconnect|
167+
168+
|ngi| |nlnet|
169+
170+
|aboutcode| |nexb|
171+
172+
173+
174+
This project was funded through the NGI0 PET Fund, a fund established by NLnet with financial
175+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
176+
Communications Networks, Content and Technology under grant agreement No 825310.
177+
178+
|ngizeropet| https://nlnet.nl/project/VulnerableCode/
179+
180+
181+
This project was funded through the NGI0 Discovery Fund, a fund established by NLnet with financial
182+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
183+
Communications Networks, Content and Technology under grant agreement No 825322.
184+
185+
|ngidiscovery| https://nlnet.nl/project/vulnerabilitydatabase/
186+
187+
188+
This project was funded through the NGI0 Core Fund, a fund established by NLnet with financial
189+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
190+
Communications Networks, Content and Technology under grant agreement No 101092990.
191+
192+
|ngizerocore| https://nlnet.nl/project/VulnerableCode-enhancements/
193+
194+
195+
This project is funded through the NGI0 Entrust Fund, a fund established by NLnet with financial
196+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
197+
Communications Networks, Content and Technology under grant agreement No 101069594.
198+
199+
|ngizeroentrust| https://nlnet.nl/project/FederatedSoftwareMetadata/
200+
201+
202+
This project was funded through the NGI0 Commons Fund, a fund established by NLnet with financial
203+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
204+
Communications Networks, Content and Technology under grant agreement No 101135429. Additional
205+
funding is made available by the Swiss State Secretariat for Education, Research and Innovation
206+
(SERI).
207+
208+
|ngizerocommons| |swiss| https://nlnet.nl/project/FederatedCodeNext/
209+
210+
This project was funded through the NGI0 Entrust Fund, a fund established by NLnet with financial
211+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
212+
Communications Networks, Content and Technology under grant agreement No 101069594.
213+
214+
|ngizeroentrust| https://nlnet.nl/project/CRAVEX/
215+
216+
217+
218+
.. |nlnet| image:: https://nlnet.nl/logo/banner.png
219+
:target: https://nlnet.nl
220+
:height: 50
221+
:alt: NLnet foundation logo
222+
223+
.. |ngi| image:: https://ngi.eu/wp-content/uploads/thegem-logos/logo_8269bc6efcf731d34b6385775d76511d_1x.png
224+
:target: https://ngi.eu35
225+
:height: 50
226+
:alt: NGI logo
227+
228+
.. |nexb| image:: https://nexb.com/wp-content/uploads/2022/04/nexB.svg
229+
:target: https://nexb.com
230+
:height: 30
231+
:alt: nexB logo
232+
233+
.. |europa| image:: https://ngi.eu/wp-content/uploads/sites/77/2017/10/bandiera_stelle.png
234+
:target: http://ec.europa.eu/index_en.htm
235+
:height: 40
236+
:alt: Europa logo
237+
238+
.. |aboutcode| image:: https://aboutcode.org/wp-content/uploads/2023/10/AboutCode.svg
239+
:target: https://aboutcode.org/
240+
:height: 30
241+
:alt: AboutCode logo
242+
243+
.. |swiss| image:: https://www.sbfi.admin.ch/sbfi/en/_jcr_content/logo/image.imagespooler.png/1493119032540/logo.png
244+
:target: https://www.sbfi.admin.ch/sbfi/en/home/seri/seri.html
245+
:height: 40
246+
:alt: Swiss logo
247+
248+
.. |dgconnect| image:: https://commission.europa.eu/themes/contrib/oe_theme/dist/ec/images/logo/positive/logo-ec--en.svg
249+
:target: https://commission.europa.eu/about-european-commission/departments-and-executive-agencies/communications-networks-content-and-technology_en
250+
:height: 40
251+
:alt: EC DG Connect logo
252+
253+
.. |ngizerocore| image:: https://nlnet.nl/image/logos/NGI0_tag.svg
254+
:target: https://nlnet.nl/core
255+
:height: 40
256+
:alt: NGI Zero Core Logo
257+
258+
.. |ngizerocommons| image:: https://nlnet.nl/image/logos/NGI0_tag.svg
259+
:target: https://nlnet.nl/commonsfund/
260+
:height: 40
261+
:alt: NGI Zero Commons Logo
262+
263+
.. |ngizeropet| image:: https://nlnet.nl/image/logos/NGI0PET_tag.svg
264+
:target: https://nlnet.nl/PET
265+
:height: 40
266+
:alt: NGI Zero PET logo
157267

158-
https://nlnet.nl/project/VulnerableCode/
268+
.. |ngizeroentrust| image:: https://nlnet.nl/image/logos/NGI0Entrust_tag.svg
269+
:target: https://nlnet.nl/entrust
270+
:height: 38
271+
:alt: NGI Zero Entrust logo
159272

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.
273+
.. |ngiassure| image:: https://nlnet.nl/image/logos/NGIAssure_tag.svg
274+
:target: https://nlnet.nl/image/logos/NGIAssure_tag.svg
275+
:height: 32
276+
:alt: NGI Assure logo
164277

165-
https://nlnet.nl/project/vulnerabilitydatabase/
278+
.. |ngidiscovery| image:: https://nlnet.nl/image/logos/NGI0Discovery_tag.svg
279+
:target: https://nlnet.nl/discovery/
280+
:height: 40
281+
:alt: NGI Discovery logo

0 commit comments

Comments
 (0)