Skip to content

Commit 8e7fd43

Browse files
authored
Merge branch 'main' into scorecard_integration
2 parents 8679ddc + c93fc98 commit 8e7fd43

File tree

188 files changed

+11121
-2140
lines changed

Some content is hidden

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

188 files changed

+11121
-2140
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
strategy:
3232
max-parallel: 4
3333
matrix:
34-
python-version: ["3.10", "3.11", "3.12"]
34+
python-version: ["3.10", "3.11", "3.12", "3.13"]
3535

3636
steps:
3737
- name: Checkout code
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Generate SBOMS
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "v*.*.*"
8+
9+
env:
10+
INPUTS_PATH: scancode-inputs
11+
12+
jobs:
13+
generate-sboms:
14+
runs-on: ubuntu-24.04
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Ensure INPUTS_PATH directory exists
21+
run: mkdir -p "${{ env.INPUTS_PATH }}"
22+
23+
- name: Build the Docker image from local Dockerfile
24+
run: docker build -t local-image .
25+
26+
- name: Run pip freeze inside the built Docker container
27+
run: docker run --rm local-image pip freeze --all --exclude scancodeio > "${{ env.INPUTS_PATH }}/requirements.txt"
28+
29+
- name: Collect all .ABOUT files in the scancodeio/ directory
30+
run: |
31+
mkdir -p "${{ env.INPUTS_PATH }}/about-files"
32+
find scancodeio/ -type f -name "*.ABOUT" -exec cp {} "${{ env.INPUTS_PATH }}/about-files/" \;
33+
34+
- name: Resolve the dependencies using ScanCode-action
35+
uses: aboutcode-org/scancode-action@main
36+
with:
37+
pipelines: "resolve_dependencies:DynamicResolver"
38+
inputs-path: ${{ env.INPUTS_PATH }}
39+
scancodeio-repo-branch: main

.github/workflows/pypi-release-aboutcode-pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Python
1818
uses: actions/setup-python@v5
1919
with:
20-
python-version: 3.12
20+
python-version: 3.13
2121

2222
- name: Install flot
2323
run: python -m pip install flot --user

.github/workflows/pypi-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Python
1818
uses: actions/setup-python@v5
1919
with:
20-
python-version: 3.12
20+
python-version: 3.13
2121

2222
- name: Install pypa/build
2323
run: python -m pip install build --user

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ local
5151
*.rdb
5252
*.aof
5353
.vscode
54+
.ipynb_checkpoints
5455

5556
# This is only created when packaging for external redistribution
5657
/thirdparty/

CHANGELOG.rst

Lines changed: 100 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,93 @@
11
Changelog
22
=========
33

4-
v34.9.6 (unreleased)
4+
v35.1.0 (unreleased)
55
--------------------
66

7+
- Add a ``--fail-on-vulnerabilities`` option in ``check-compliance`` management command.
8+
When this option is enabled, the command will exit with a non-zero status if known
9+
vulnerabilities are detected in discovered packages and dependencies.
10+
Requires the ``find_vulnerabilities`` pipeline to be executed beforehand.
11+
https://github.com/aboutcode-org/scancode.io/pull/1702
12+
13+
- Enable ``--license-references`` scan option in the ``scan_single_package`` pipeline.
14+
The ``license_references`` and ``license_rule_references`` attributes will now be
15+
available in the scan results, including the details about detected licenses and
16+
license rules used during the scan.
17+
https://github.com/aboutcode-org/scancode.io/issues/1657
18+
19+
v35.0.0 (2025-06-23)
20+
--------------------
21+
22+
- Add support for Python 3.13.
23+
Upgrade the base image in Dockerfile to ``python:3.13-slim``.
24+
https://github.com/aboutcode-org/scancode.io/pull/1469/files
25+
26+
- Display matched snippets details in "Resource viewer", including the package,
27+
resource, and similarity values.
28+
https://github.com/aboutcode-org/scancode.io/issues/1688
29+
30+
- Add filtering by label and pipeline in the ``flush-projects`` management command.
31+
Also, a new ``--dry-run`` option is available to test the filters before applying
32+
the deletion.
33+
https://github.com/aboutcode-org/scancode.io/pull/1690
34+
35+
- Add support for using Package URL (purl) as project input.
36+
This implementation is based on ``purl2url.get_download_url``.
37+
https://github.com/aboutcode-org/scancode.io/issues/1383
38+
39+
- Raise a ``MatchCodeIOException`` when the response from the MatchCode.io service is
40+
not valid in ``send_project_json_to_matchcode``.
41+
This generally means an issue on the MatchCode.io server side.
42+
https://github.com/aboutcode-org/scancode.io/issues/1665
43+
44+
- Upgrade Bulma CSS and Ace JS libraries to latest versions.
45+
Refine the CSS for the Resource viewer.
46+
https://github.com/aboutcode-org/scancode.io/pull/1692
47+
48+
- Add "(No value detected)" for Copyright and Holder charts.
49+
https://github.com/aboutcode-org/scancode.io/issues/1697
50+
51+
- Add "Package Compliance Alert" chart in the Policies section.
52+
https://github.com/aboutcode-org/scancode.io/pull/1699
53+
54+
- Update univers to v31.0.0, catch ``NotImplementedError`` in
55+
``get_unique_unresolved_purls``, and properly log error in project.
56+
https://github.com/aboutcode-org/scancode.io/pull/1700
57+
https://github.com/aboutcode-org/scancode.io/pull/1701
58+
59+
v34.11.0 (2025-05-02)
60+
---------------------
61+
62+
- Add a ``UUID`` field on the DiscoveredDependency model.
63+
Use the UUID for the DiscoveredDependency spdx_id for better SPDX compatibility.
64+
https://github.com/aboutcode-org/scancode.io/issues/1651
65+
66+
- Add MatchCode-specific functions to compute fingerprints from stemmed code
67+
files. Update CodebaseResource file content view to display snippet matches,
68+
if available, when the codebase has been sent for matching to MatchCode.
69+
https://github.com/aboutcode-org/scancode.io/pull/1656
70+
71+
- Add the ability to export filtered QuerySet of a FilterView into the JSON format.
72+
https://github.com/aboutcode-org/scancode.io/pull/1572
73+
74+
- Include ``ProjectMessage`` records in the JSON output ``headers`` section.
75+
https://github.com/aboutcode-org/scancode.io/issues/1659
76+
77+
v34.10.1 (2025-03-26)
78+
---------------------
79+
80+
- Convert the ``declared_license`` field value return by ``python-inspector`` in
81+
``resolve_pypi_packages``.
82+
Resolving requirements.txt files will now return proper license data.
83+
https://github.com/aboutcode-org/scancode.io/issues/1598
84+
85+
- Add support for installing on Apple Silicon (macOS ARM64) in dev mode.
86+
https://github.com/aboutcode-org/scancode.io/pull/1646
87+
88+
v34.10.0 (2025-03-21)
89+
---------------------
90+
791
- Rename the ``docker``, ``docker_windows``, and ``root_filesystem`` modules to
892
``analyze_docker``, ``analyze_docker_windows``, and ``analyze_root_filesystem``
993
for consistency.
@@ -17,6 +101,21 @@ v34.9.6 (unreleased)
17101
* Add a new chapter dedicated to Webhooks management in the documentation
18102
* Add support for custom payload dedicated to Slack webhooks
19103

104+
- Upgrade Bulma CSS library to version 1.0.2
105+
https://github.com/aboutcode-org/scancode.io/pull/1268
106+
107+
- Disable the creation of the global webhook in the ``batch-create`` command by default.
108+
The global webhook can be created by providing the ``--create-global-webhook`` option.
109+
A ``--no-global-webhook`` option was also added to the ``create-project`` command to
110+
provide the ability to skip the global webhook creation.
111+
https://github.com/aboutcode-org/scancode.io/pull/1629
112+
113+
- Add support for "Permission denied" file access in make_codebase_resource.
114+
https://github.com/aboutcode-org/scancode.io/issues/1630
115+
116+
- Refine the ``scan_single_package`` pipeline to work on git fetched inputs.
117+
https://github.com/aboutcode-org/scancode.io/issues/1376
118+
20119
v34.9.5 (2025-02-19)
21120
--------------------
22121

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# ScanCode.io is a free software code scanning tool from nexB Inc. and others.
2121
# Visit https://github.com/aboutcode-org/scancode.io for support and download.
2222

23-
FROM python:3.12-slim
23+
FROM python:3.13-slim
2424

2525
LABEL org.opencontainers.image.source="https://github.com/aboutcode-org/scancode.io"
2626
LABEL org.opencontainers.image.description="ScanCode.io"

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ VENV_LOCATION=.venv
2626
ACTIVATE?=. ${VENV_LOCATION}/bin/activate;
2727
MANAGE=${VENV_LOCATION}/bin/python manage.py
2828
VIRTUALENV_PYZ=etc/thirdparty/virtualenv.pyz
29+
PIP_ARGS=--find-links=./etc/thirdparty/dummy_dist
2930
# Do not depend on Python to generate the SECRET_KEY
3031
GET_SECRET_KEY=`head -c50 /dev/urandom | base64 | head -c50`
3132
# Customize with `$ make envfile ENV_FILE=/etc/scancodeio/.env`
@@ -51,11 +52,11 @@ virtualenv:
5152

5253
conf: virtualenv
5354
@echo "-> Install dependencies"
54-
@${ACTIVATE} pip install -e .
55+
@${ACTIVATE} pip install ${PIP_ARGS} --editable .
5556

5657
dev: virtualenv
5758
@echo "-> Configure and install development dependencies"
58-
@${ACTIVATE} pip install -e .[dev]
59+
@${ACTIVATE} pip install ${PIP_ARGS} --editable .[dev]
5960

6061
envfile:
6162
@echo "-> Create the .env file and generate a secret key"
@@ -79,6 +80,8 @@ check:
7980
@echo "-> Run Ruff format validation"
8081
@${ACTIVATE} ruff format --check
8182
@$(MAKE) doc8
83+
@echo "-> Run ABOUT files validation"
84+
@${ACTIVATE} about check --exclude .venv/ --exclude scanpipe/tests/ .
8285

8386
check-deploy:
8487
@echo "-> Check Django deployment settings"

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- `CHANGELOG.rst` (set date)
1010
- Commit and push this branch
1111
- Create a PR and merge once approved
12-
- Tag and push that tag. This will triggers the `pypi-release.yml` GitHub workflow that
12+
- Tag and push that tag. This will trigger the `pypi-release.yml` GitHub workflow that
1313
takes care of building the dist release files and upload those to pypi:
1414
```
1515
VERSION=vx.x.x # <- Set the new version here

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.

0 commit comments

Comments
 (0)