Skip to content

Conversation

@AlfredoEspinosa
Copy link
Owner

Sync with original repository

goneall and others added 30 commits April 20, 2022 14:03
Resolves issue #57

Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
Generation missing required properties for arrays
Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
Update ToolsJava to support spec version 2.3
Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
Signed-off-by: Armin Tänzer <armintaenzer@tngtech.com>
Signed-off-by: Armin Tänzer <armintaenzer@tngtech.com>
updated README to reflect the new file names and structures
Resolves issue #74

Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
Verify JSON against version specific schema files
* Fix compare spreadsheet name normalization

Signed-off-by: Gary O'Neall <gary@sourceauditor.com>

* Additional checks for compares

- Check creator comment differences
- Check to make sure there are no duplicate document namespaces

Signed-off-by: Gary O'Neall <gary@sourceauditor.com>

* Remove temp file

Signed-off-by: Gary O'Neall <gary@sourceauditor.com>

* Update POM file with the latest library dependencies

Signed-off-by: Gary O'Neall <gary@sourceauditor.com>

* Use unique document URI's for all test files

Signed-off-by: Gary O'Neall <gary@sourceauditor.com>

Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
Allows for both dashes and underscores in enumeration values

Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
Add dependency-check util to POM file
Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
See spdx/spdx-spec#795 for context on
documentDescribes

See spdx/spdx-spec#792 for context on enum
underscores

Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
Update schema generator for required fields
Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
Add support for RDF Turtle format
Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
Add extra checks for NPE on getUri()
bact and others added 29 commits February 26, 2025 18:08
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>
Check content of local schema file with the remote location.

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
- URI.created().toURL() is available since Java 1.4
- new URL() (constructor) is deprecated in Java 20

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
- java-spdx-library to 2.0.0
- spdx-rdf-store to 2.0.0
- spdx-jackson-store to 2.0.0
- spdx-spreadsheet-store to 2.0.0
- spdx-tagvalue-store to 2.0.0
- spdx-v3jsonld-store to 1.0.0

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>
Use URI.create().toURL() instead of the deprecated URL() constructor
Fixes an issue where the compare fails if run on a windows environment
where CRLF is used instead of LF
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Fixes #201

Later versions of the shade plugin strip out the dependencies in the POM
file.
- Update JAR name in command line examples to version 2.0.0
- Fix few Markdown issues
- Add Javadoc link
Update README examples with new release versions
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
For Wolfi container at cgr.dev/chainguard/wolfi-base, trivy for spdx json SBOM generates

```json
    {
      "name": "wolfi",
      "SPDXID": "SPDXRef-OperatingSystem-2bccf727fe0bc7f8",
      "versionInfo": "20230201",
      "downloadLocation": "NONE",
      "filesAnalyzed": false,
      "primaryPackagePurpose": "OPERATING-SYSTEM",
      "annotations": [
        {
          "annotator": "Tool: trivy-0.62.1",
          "annotationDate": "2025-05-28T17:07:25Z",
          "annotationType": "OTHER",
          "comment": "Class: os-pkgs"
        },
        {
          "annotator": "Tool: trivy-0.62.1",
          "annotationDate": "2025-05-28T17:07:25Z",
          "annotationType": "OTHER",
          "comment": "Type: wolfi"
        }
      ]
    }
```

Which fails validating with tools-java because "OPERATING-SYSTEM" value is with a dash, which matches the spec at https://spdx.github.io/spdx-spec/v2.3/package-information/#724-primary-package-purpose-field

Given tools in wild follow the spec, imho it is relatively safe to update the schema here.

Note we have PACKAGE_MANAGER PACKAGE-MANAGER saga before, so do help
me validating any other tools that might be impacted, so far I see
this schema file being the only one out of line.
@AlfredoEspinosa AlfredoEspinosa merged commit b6ec62f into AlfredoEspinosa:master Jun 25, 2025
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.

9 participants