Skip to content

refactoring/527_spdx-sbom#542

Open
redcatbear wants to merge 6 commits into
mainfrom
refactoring/527_spdx-sbom
Open

refactoring/527_spdx-sbom#542
redcatbear wants to merge 6 commits into
mainfrom
refactoring/527_spdx-sbom

Conversation

@redcatbear

@redcatbear redcatbear commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator

This is our first shot at creating an SBOM. OFT's SBOM is not very thrilling, since OFT has only a single runtime dependency (the JRE) and that is not included in the distribution JAR because it is on the user's machine.

That leaves only a list of internal OFT packages in the SBOM, which all have the same license: GPL 3.0.

Closes #527.

@redcatbear redcatbear requested a review from kaklakariada June 13, 2026 09:23
@redcatbear redcatbear self-assigned this Jun 13, 2026
@redcatbear redcatbear added the documentation User guides, turorials, specifications label Jun 13, 2026
Comment on lines +98 to +104
- name: Upload SPDX SBOM
uses: actions/upload-artifact@v7
if: ${{ env.DEFAULT_OS == matrix.os && env.DEFAULT_JAVA == matrix.java }}
with:
name: openfasttrace-spdx
path: product/target/site/*.spdx.json
if-no-files-found: error

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
Also generate this in the release workflow, calculate checksum and attach it with the checksum to the GitHub release (see shell script).

Comment thread doc/changes/changes_4.6.0.md Outdated
Comment on lines +91 to +96
- name: Generate SPDX SBOM
if: ${{ env.DEFAULT_OS == matrix.os && env.DEFAULT_JAVA == matrix.java }}
run: |
mvn --batch-mode -pl product spdx:createSPDX \
-Dossindex.skip=true \
-Djava.version=${{ matrix.java }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to run the plugin with mvn install? Then you don't need a separate build step.

Comment thread doc/developer_guide.md Outdated
Comment thread parent/pom.xml Outdated
Comment thread product/pom.xml
<!-- The following section is unfortunately necessary because the Maven SPDX plugin has problems
with OFT's multi-module project
-->
<licenseOverwrites>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We really need to find a workaround for this ;)

Comment thread pom.xml
Comment on lines +62 to +73
<configuration>
<sbomType>build</sbomType>
<includeTestScope>false</includeTestScope>
<licenseDeclared>GPL-3.0-only</licenseDeclared>
<licenseConcluded>GPL-3.0-only</licenseConcluded>
<copyrightText>Copyright (c) itsallcode.org</copyrightText>
<createExternalRefs>false</createExternalRefs>
<defaultFileConcludedLicense>GPL-3.0-only</defaultFileConcludedLicense>
<defaultLicenseInformationInFile>GPL-3.0-only</defaultLicenseInformationInFile>
<defaultFileCopyright>Copyright (c) itsallcode.org</defaultFileCopyright>
</configuration>
</plugin>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicated in parent pom. Is this really necessary as the root is only an aggregator pom without code?

Co-authored-by: Christoph Pirkl <4711730+kaklakariada@users.noreply.github.com>
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation User guides, turorials, specifications

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SPDX SBOM

2 participants