Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for strict specification adherence with analysis #138

Open
surendrapathak opened this issue Apr 18, 2023 · 3 comments
Open

Support for strict specification adherence with analysis #138

surendrapathak opened this issue Apr 18, 2023 · 3 comments

Comments

@surendrapathak
Copy link
Collaborator

This is to track the implementation of checking strict adherence to the specifications and reporting issues in an actionable format.

Examples:

  1. https://sbombenchmark.dev/score/bom-v0.4.0_rails-5.0.0.1.spdx.tv , Issues tab: finds Creator tool without version.
  2. https://sbombenchmark.dev/score/trivy-0.39.0_debian-bookworm-20230320-slim.spdx.tv, Issues tab: finds various Licenses in inaccurate format.
  3. https://sbombenchmark.dev/score/bom-v0.4.0_debian-bookworm-20230320-slim.spdx.tv, Issues tab: package download location is incorrect.

Rules to check {WIP}
SPDX

  1. License expressions are valid as per SPDX license expression rules.
  2. SPDXVersion is valid
  3. SPDXData License is valid
  4. Docnaamespace is a valid URL
  5. ExternalDocRef is a valid reference
  6. LicenseList follows Major/Minor versioning
  7. LicenseID incorporates only valid set of characters
  8. Creator is limited to Person/Organization and Tool
  9. Timestamp is valid
  10. SPDXID starts with SPDXRef and has valid characters
  11. Package Provider (Supplier/Originator) is a valid Person/Organization string
  12. Package Download Location is a valid URI
@viveksahu26
Copy link
Collaborator

Hi @surendrapathak , this has to be implemented under score command itself or other any separate command ?

@surendrapathak
Copy link
Collaborator Author

I recommend a new 'validate' command for ensuring adherence to spec. The command validates basic structure and then rules setup above.

@viveksahu26
Copy link
Collaborator

I recommend a new 'validate' command for ensuring adherence to spec. The command validates basic structure and then rules setup above.

@riteshnoronha your thoughts on this ?

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

No branches or pull requests

2 participants