Skip to content

Conversation

@bact
Copy link
Contributor

@bact bact commented Apr 8, 2025

This PR fix two issues in SPDX 2.x validation step in the PR check workflow:

  1. tools-java behavior is not stable:
  2. Check marked as "Passed" even some validations failed:
    • To fix that, this PR changes the workflow to run tools-java.jar Verify outside find -exec, so the Verify exit code is not hidden and can be used to failed workflow.
    • The validation step will not failed immediately once find an invalid SBOM but will collect all invalid ones, report a summary at the end of the step, and exit with non-zero value to eventually failed the check.

This PR also add --quiet option to spdx3-validate to disable its spinner and make the run log more compact and easier to read.

--

Note that this PR currently failed the PR check because there are 3 SBOMs that don't pass the SBOM validation. These following issues have to be fixed before the check can get a pass:

bact and others added 9 commits April 8, 2025 04:24
Instead of build it from latest source

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Co-Authored-By: Gary O'Neall <gary@sourceauditor.com>
Add set -e

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail..com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@bact bact changed the title Use released tools-java Make PR check fails when find invalid SPDX 2.x SBOM Apr 8, 2025
Use --quiet option to disable spinner and make the log smaller

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@bact
Copy link
Contributor Author

bact commented Apr 9, 2025

Reviewed during 2025-04-08 Tech Team meeting .

Copy link
Member

@goneall goneall left a comment

Choose a reason for hiding this comment

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

LGTM

@bact
Copy link
Contributor Author

bact commented Apr 29, 2025

Update tools-java version to 2.0.1

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@goneall goneall merged commit c4938ed into spdx:master Apr 29, 2025
1 check failed
@bact bact deleted the use-stable-tools-java branch April 29, 2025 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants