Skip to content

Commit 1e8eb76

Browse files
Merge branch 'main' into license-detection-models
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
2 parents 9f220ac + ef53d3b commit 1e8eb76

File tree

221 files changed

+6381
-2448
lines changed

Some content is hidden

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

221 files changed

+6381
-2448
lines changed

.dockerignore

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
**/.*
12
**/.git
23
**/.gitignore
34
**/.github
@@ -9,6 +10,7 @@
910
**/.DS_Store
1011
**/.aof
1112
**/venv
13+
**/.venv
1214
**/env
1315
**/bin
1416
**/build
@@ -18,11 +20,14 @@
1820
**/lib
1921
**/var
2022
**/*.egg-info
23+
**/.*cache
2124
.dockerignore
2225
.readthedocs.yaml
2326
docker.env
2427
.env
2528
CHANGELOG.rst
29+
MANIFEST.in
30+
Makefile
2631
Dockerfile
2732
README.rst
2833
docker-compose.yml

.github/workflows/ci.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,10 @@ jobs:
4242
with:
4343
python-version: ${{ matrix.python-version }}
4444

45-
- name: Install universal ctags
46-
run: sudo apt-get install -y universal-ctags
47-
48-
- name: Install xgettext
49-
run: sudo apt-get install -y gettext
45+
- name: Install universal ctags and xgettext
46+
run: |
47+
sudo apt-get update
48+
sudo apt-get install -y universal-ctags gettext
5049
5150
- name: Install dependencies
5251
run: make dev envfile
@@ -61,7 +60,7 @@ jobs:
6160
run: make docs
6261

6362
- name: Run tests
64-
run: bin/python manage.py test --verbosity=2 --noinput
63+
run: .venv/bin/python manage.py test --verbosity=2 --noinput
6564
env:
6665
SCANCODEIO_DB_NAME: ${{ env.POSTGRES_DB }}
6766
SCANCODEIO_DB_USER: ${{ env.POSTGRES_USER }}

.github/workflows/publish-docker.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ jobs:
5959
push: true
6060
tags: |
6161
${{ steps.meta.outputs.tags }}
62-
${{ env.REGISTRY }}/nexb/scancode.io:latest
62+
${{ env.REGISTRY }}/aboutcode-org/scancode.io:latest
6363
labels: ${{ steps.meta.outputs.labels }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build aboutcode.pipeline Python distributions and publish on PyPI
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "aboutcode.pipeline/*"
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.12
21+
22+
- name: Install flot
23+
run: python -m pip install flot --user
24+
25+
- name: Build a binary wheel and a source tarball
26+
run: python -m flot --pyproject pipeline-pyproject.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_PIPELINE }}
33+
34+
- name: Upload built archives
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: pypi_archives
38+
path: dist/*

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ share
4343
selenium
4444
local
4545
/dist/
46-
/.cache/
46+
/.*cache/
47+
/.venv/
4748
/.python-version
4849
/.pytest_cache/
4950
/scancodeio.egg-info/

CHANGELOG.rst

+137
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,143 @@
11
Changelog
22
=========
33

4+
v34.9.1 (unreleased)
5+
--------------------
6+
7+
- Add the ability to filter on Project endpoint API actions.
8+
The list of ``resources``, ``packages``, ``dependencies``, ``relations``, and
9+
``messages`` can be filtered providing the ``?field_name=value`` in the URL
10+
parameters.
11+
https://github.com/aboutcode-org/scancode.io/issues/1449
12+
13+
- Fix the ability to provide multiple optional step when defining pipelines in the
14+
REST API.
15+
The support for providing pipeline names as a comma-separated single string was
16+
remove as the comma is used as the optional step separator.
17+
Use a list of pipeline names instead.
18+
https://github.com/aboutcode-org/scancode.io/issues/1454
19+
20+
- Make the header row of tables sticky to the top of the screen so it is always
21+
visible.
22+
https://github.com/aboutcode-org/scancode.io/issues/1457
23+
24+
v34.9.0 (2024-11-14)
25+
--------------------
26+
27+
- Add ability to declared pipeline selected groups in create project REST API endpoint.
28+
https://github.com/aboutcode-org/scancode.io/issues/1426
29+
30+
- Add a new ``list-pipelines`` management command.
31+
https://github.com/aboutcode-org/scancode.io/issues/1397
32+
33+
- Refactor the policies related code to its own module.
34+
https://github.com/aboutcode-org/scancode.io/issues/386
35+
36+
- Add support for project-specific license policies and compliance alerts.
37+
Enhance Project model to handle policies from local settings, project input
38+
"policies.yml" files, or global app settings.
39+
https://github.com/aboutcode-org/scancode.io/issues/386
40+
41+
- Refactor the ``group`` decorator for pipeline steps as ``optional_step``.
42+
The steps decorated as optional are not included by default anymore.
43+
https://github.com/aboutcode-org/scancode.io/issues/386
44+
45+
- Add a new ``PublishToFederatedCode`` pipeline (addon) to push scan result
46+
to FederatedCode.
47+
https://github.com/nexB/scancode.io/pull/1400
48+
49+
- Add new ``purl`` field to project model. https://github.com/nexB/scancode.io/pull/1400
50+
51+
v34.8.3 (2024-10-30)
52+
--------------------
53+
54+
- Include the ``aboutcode`` module in the wheel and source distribution.
55+
https://github.com/aboutcode-org/scancode.io/issues/1423
56+
57+
- Update ScanCode-toolkit to v32.3.0
58+
https://github.com/aboutcode-org/scancode.io/issues/1418
59+
60+
v34.8.2 (2024-10-28)
61+
--------------------
62+
63+
- Add ``android_analysis`` to ``extra_requires``. This installs the package
64+
``android_inspector``, which provides a pipeline for Android APK
65+
deploy-to-development analysis.
66+
67+
- Remove the sleep time in the context of testing ``matchcode.poll_run_url_status``
68+
to speed up the test.
69+
https://github.com/aboutcode-org/scancode.io/issues/1411
70+
71+
- Add ability to specify the CycloneDX output spec version using the ``output``
72+
management command and providing the ``cyclonedx:VERSION`` syntax as format value.
73+
https://github.com/aboutcode-org/scancode-action/issues/8
74+
75+
- Add new ``compliance`` REST API action that list all compliance alert for a given
76+
project. The severity level can be provided using the
77+
``?fail_level={ERROR,WARNING,MISSING}`` parameter.
78+
https://github.com/aboutcode-org/scancode.io/issues/1346
79+
80+
- Add new ``Compliance alerts`` panel in the project detail view.
81+
https://github.com/aboutcode-org/scancode.io/issues/1346
82+
83+
v34.8.1 (2024-09-06)
84+
--------------------
85+
86+
- Upgrade Django to security release 5.1.1 and related dependencies.
87+
88+
v34.8.0 (2024-08-15)
89+
--------------------
90+
91+
- Add a new ``enrich_with_purldb`` add-on pipeline to enrich the discovered packages
92+
with data available in the PurlDB.
93+
https://github.com/nexB/scancode.io/issues/1182
94+
95+
- Add the ability to define a results_url on the Pipeline class.
96+
When available, that link is displayed in the UI to easily reach the results view
97+
related to the Pipeline run.
98+
https://github.com/nexB/scancode.io/pull/1330
99+
100+
- Expands on the existing WebhookSubscription model by adding a few fields to
101+
configure the behavior of the Webhooks, and moves some of the fields to a new
102+
WebhookDelivery model, which captures the results of a WebhookSubscription
103+
"delivery".
104+
https://github.com/nexB/scancode.io/issues/1325
105+
106+
- Add support for creating dependencies using the ``load_sboms`` pipeline on CycloneDX
107+
SBOM inputs.
108+
https://github.com/nexB/scancode.io/issues/1145
109+
110+
- Add a new Dependency view that renders the project dependencies as a tree.
111+
https://github.com/nexB/scancode.io/issues/1145
112+
113+
- The ``purldb-scan-worker`` command has been updated to send project results
114+
back using the Project webhook subscriptions. This allows us to not have the
115+
main task loop to monitor a single project run for completion in order to
116+
return data, and allows us to have multiple scan projects active at once while
117+
we use ``purldb-scan-worker``. A new option ``--max-concurrent-projects`` has
118+
been added to set the number of purldb packages that can be requested and
119+
processed at once.
120+
https://github.com/nexB/scancode.io/issues/1287
121+
122+
- Add notes field on the DiscoveredPackage model.
123+
https://github.com/nexB/scancode.io/issues/1342
124+
125+
- Fix an issue with conflicting groups checkbox id in the Add pipeline modal.
126+
https://github.com/nexB/scancode.io/issues/1353
127+
128+
- Move the BasePipeline class to a new `aboutcode.pipeline` module.
129+
https://github.com/nexB/scancode.io/issues/1351
130+
131+
- Update link references of ownership from nexB to aboutcode-org
132+
https://github.com/aboutcode-org/scancode.io/issues/1350
133+
134+
- Add a new ``check-compliance`` management command to check for compliance issues in
135+
a project.
136+
https://github.com/nexB/scancode.io/issues/1182
137+
138+
- Fix issues in ``match_to_matchcode`` where the incorrect polling function was
139+
used and match results were not properly collected.
140+
4141
v34.7.1 (2024-07-15)
5142
--------------------
6143

Dockerfile

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-License-Identifier: Apache-2.0
22
#
3-
# http://nexb.com and https://github.com/nexB/scancode.io
3+
# http://nexb.com and https://github.com/aboutcode-org/scancode.io
44
# The ScanCode.io software is licensed under the Apache License version 2.0.
55
# Data generated with ScanCode.io is provided as-is without warranties.
66
# ScanCode is a trademark of nexB Inc.
@@ -18,18 +18,18 @@
1818
# for any legal advice.
1919
#
2020
# ScanCode.io is a free software code scanning tool from nexB Inc. and others.
21-
# Visit https://github.com/nexB/scancode.io for support and download.
21+
# Visit https://github.com/aboutcode-org/scancode.io for support and download.
2222

23-
FROM --platform=linux/amd64 python:3.12-slim
23+
FROM python:3.12-slim
2424

25-
LABEL org.opencontainers.image.source="https://github.com/nexB/scancode.io"
25+
LABEL org.opencontainers.image.source="https://github.com/aboutcode-org/scancode.io"
2626
LABEL org.opencontainers.image.description="ScanCode.io"
2727
LABEL org.opencontainers.image.licenses="Apache-2.0"
2828

2929
ENV APP_NAME scancodeio
3030
ENV APP_USER app
3131
ENV APP_DIR /opt/$APP_NAME
32-
ENV VIRTUAL_ENV /opt/$APP_NAME/venv
32+
ENV VENV_LOCATION /opt/$APP_NAME/.venv
3333

3434
# Force Python unbuffered stdout and stderr (they are flushed to terminal immediately)
3535
ENV PYTHONUNBUFFERED 1
@@ -78,9 +78,9 @@ WORKDIR $APP_DIR
7878
USER $APP_USER
7979

8080
# Create the virtualenv
81-
RUN python -m venv $VIRTUAL_ENV
81+
RUN python -m venv $VENV_LOCATION
8282
# Enable the virtualenv, similar effect as "source activate"
83-
ENV PATH $VIRTUAL_ENV/bin:$PATH
83+
ENV PATH $VENV_LOCATION/bin:$PATH
8484

8585
# Create static/ and workspace/ directories
8686
RUN mkdir -p /var/$APP_NAME/static/ \

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ include .VERSION
1515

1616
graft scancodeio
1717
graft scanpipe
18+
graft aboutcode
1819
graft docs
1920
graft etc
2021
graft .github/workflows

0 commit comments

Comments
 (0)