Skip to content

Commit 49d99ab

Browse files
committed
Merge main and fix conflicts
Signed-off-by: tdruez <[email protected]>
2 parents dbb43b6 + 3bfad95 commit 49d99ab

Some content is hidden

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

51 files changed

+4751
-236
lines changed

.github/workflows/generate-sboms.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
find scancodeio/ -type f -name "*.ABOUT" -exec cp {} "${{ env.INPUTS_PATH }}/about-files/" \;
3333
3434
- name: Resolve the dependencies using ScanCode-action
35-
uses: nexB/scancode-action@main
35+
uses: aboutcode-org/scancode-action@main
3636
with:
3737
pipelines: "resolve_dependencies:DynamicResolver"
3838
inputs-path: ${{ env.INPUTS_PATH }}

CHANGELOG.rst

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,32 @@
11
Changelog
22
=========
33

4-
v34.10.2 (unreleased)
4+
v34.12.0 (unreleased)
5+
---------------------
6+
7+
- Display matched snippets details in "Resource viewer", including the package,
8+
resource, and similarity values.
9+
https://github.com/aboutcode-org/scancode.io/issues/1688
10+
11+
- Add filtering by label and pipeline in the ``flush-projects`` management command.
12+
Also, a new ``--dry-run`` option is available to test the filters before applying
13+
the deletion.
14+
https://github.com/aboutcode-org/scancode.io/pull/1690
15+
16+
- Add support for using Package URL (purl) as project input.
17+
This implementation is based on ``purl2url.get_download_url``.
18+
https://github.com/aboutcode-org/scancode.io/issues/1383
19+
20+
- Raise a ``MatchCodeIOException`` when the response from the MatchCode.io service is
21+
not valid in ``send_project_json_to_matchcode``.
22+
This generally means an issue on the MatchCode.io server side.
23+
https://github.com/aboutcode-org/scancode.io/issues/1665
24+
25+
- Upgrade Bulma CSS and Ace JS libraries to latest versions.
26+
Refine the CSS for the Resource viewer.
27+
https://github.com/aboutcode-org/scancode.io/pull/1692
28+
29+
v34.11.0 (2025-05-02)
530
---------------------
631

732
- Add a ``UUID`` field on the DiscoveredDependency model.

docs/automation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ automation methods such as a cron job or a git hook::
7979
Seamlessly integrate ScanCode.io into your GitHub Workflows to enable automated scans
8080
as an integral part of your development process.
8181

82-
Visit the `scancode-action repository <https://github.com/nexB/scancode-action>`_ to
83-
explore and learn more about the GitHub Action for ScanCode.io.
82+
Visit the `scancode-action repository <https://github.com/aboutcode-org/scancode-action>`_
83+
to explore and learn more about the GitHub Action for ScanCode.io.
8484
The repository provides detailed information, usage instructions,
8585
and configuration options to help you incorporate code scanning effortlessly into your
8686
workflows.

docs/command-line-interface.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,14 @@ Optional arguments:
549549

550550
scanpipe flush-projects --retain-days 7
551551

552+
- ``--dry-run`` Do not delete any projects; just print the ones that would be flushed.
553+
554+
- ``--label LABELS`` Filter projects by the provided label.
555+
Multiple labels can be provided by using this argument multiple times.
556+
557+
- ``--pipeline PIPELINES`` Filter projects by the provided pipeline name.
558+
Multiple pipeline name can be provided by using this argument multiple times.
559+
552560
- ``--no-input`` Does not prompt the user for input of any kind.
553561

554562

docs/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ How can I trigger a pipeline scan from a CI/CD, such as Jenkins, TeamCity or Azu
202202
You can refer to the :ref:`automation` to automate your projects management.
203203

204204
Also, A new GitHub action is available at
205-
`scancode-action repository <https://github.com/nexB/scancode-action>`_
205+
`scancode-action repository <https://github.com/aboutcode-org/scancode-action>`_
206206
to run ScanCode.io pipelines from your GitHub Workflows.
207207

208208
How can I get notified about my project progression?

etc/thirdparty/virtualenv.pyz

1.8 MB
Binary file not shown.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
about_resource: virtualenv.pyz
22
name: get-virtualenv
3-
version: 20.29.3
4-
download_url: https://github.com/pypa/get-virtualenv/raw/20.29.3/public/virtualenv.pyz
3+
version: 20.31.2
4+
download_url: https://github.com/pypa/get-virtualenv/raw/20.31.2/public/virtualenv.pyz
55
description: virtualenv is a tool to create isolated Python environments.
66
homepage_url: https://github.com/pypa/virtualenv
77
license_expression: lgpl-2.1-plus AND (bsd-new OR apache-2.0) AND mit AND python AND bsd-new
@@ -10,4 +10,4 @@ copyright: Copyright (c) The Python Software Foundation and others
1010
redistribute: yes
1111
attribute: yes
1212
track_changes: yes
13-
package_url: pkg:github/pypa/get-virtualenv@20.29.3#public/virtualenv.pyz
13+
package_url: pkg:github/pypa/get-virtualenv@20.31.2#public/virtualenv.pyz

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ max-complexity = 10
3636
# Allow the usage of assert in the test_spdx file.
3737
"**/test_spdx.py*" = ["S101"]
3838
"scanpipe/pipes/spdx.py" = ["UP006", "UP035"]
39+
# Allow complexity in management commands
40+
"scanpipe/management/commands/*" = ["C901"]

scancodeio/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
import git
3030

31-
VERSION = "34.10.1"
31+
VERSION = "34.11.0"
3232

3333
PROJECT_DIR = Path(__file__).resolve().parent
3434
ROOT_DIR = PROJECT_DIR.parent
@@ -87,6 +87,7 @@ def extract_short_commit(git_describe):
8787
# Turn off the warnings for the following modules.
8888
warnings.filterwarnings("ignore", module="extractcode")
8989
warnings.filterwarnings("ignore", module="typecode")
90+
warnings.filterwarnings("ignore", module="clamd")
9091

9192

9293
def command_line():

scancodeio/settings.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -425,28 +425,30 @@
425425

426426
# VulnerableCode integration
427427

428-
VULNERABLECODE_URL = env.str("VULNERABLECODE_URL", default="")
428+
VULNERABLECODE_URL = env.str("VULNERABLECODE_URL", default="").rstrip("/")
429429
VULNERABLECODE_USER = env.str("VULNERABLECODE_USER", default="")
430430
VULNERABLECODE_PASSWORD = env.str("VULNERABLECODE_PASSWORD", default="")
431431
VULNERABLECODE_API_KEY = env.str("VULNERABLECODE_API_KEY", default="")
432432

433433
# PurlDB integration
434434

435-
PURLDB_URL = env.str("PURLDB_URL", default="")
435+
PURLDB_URL = env.str("PURLDB_URL", default="").rstrip("/")
436436
PURLDB_USER = env.str("PURLDB_USER", default="")
437437
PURLDB_PASSWORD = env.str("PURLDB_PASSWORD", default="")
438438
PURLDB_API_KEY = env.str("PURLDB_API_KEY", default="")
439439

440440
# MatchCode.io integration
441441

442-
MATCHCODEIO_URL = env.str("MATCHCODEIO_URL", default="")
442+
MATCHCODEIO_URL = env.str("MATCHCODEIO_URL", default="").rstrip("/")
443443
MATCHCODEIO_USER = env.str("MATCHCODEIO_USER", default="")
444444
MATCHCODEIO_PASSWORD = env.str("MATCHCODEIO_PASSWORD", default="")
445445
MATCHCODEIO_API_KEY = env.str("MATCHCODEIO_API_KEY", default="")
446446

447447
# FederatedCode integration
448448

449-
FEDERATEDCODE_GIT_ACCOUNT_URL = env.str("FEDERATEDCODE_GIT_ACCOUNT_URL", default="")
449+
FEDERATEDCODE_GIT_ACCOUNT_URL = env.str(
450+
"FEDERATEDCODE_GIT_ACCOUNT_URL", default=""
451+
).rstrip("/")
450452
FEDERATEDCODE_GIT_SERVICE_TOKEN = env.str("FEDERATEDCODE_GIT_SERVICE_TOKEN", default="")
451453
FEDERATEDCODE_GIT_SERVICE_NAME = env.str("FEDERATEDCODE_GIT_SERVICE_NAME", default="")
452454
FEDERATEDCODE_GIT_SERVICE_EMAIL = env.str("FEDERATEDCODE_GIT_SERVICE_EMAIL", default="")

0 commit comments

Comments
 (0)