Skip to content

Conversation

@pragnya17
Copy link
Contributor

With the completion of this feature, we will be able to generate spdx 3.0 json elements which make up an SBOM document.
The goal is to generate spdx 3.0 elements in the format that is specified by the 3.0 spec - SPDX Specification 3.0.1

Specifically these are the changes that are introduced in this PR:

  1. Entities - Define the different spdx 3.0 elements as classes under "Entities". Instances of these classes are used to represent spdx 3.0 json elements such as files, packages, etc.
  2. Generator - Generate a json document using the spdx 3.0 elements instead of the spdx 2.0 elements.
  3. Unit testing for the generation of all these spdx 3.0 elements

@pragnya17 pragnya17 requested a review from a team as a code owner December 11, 2024 18:51
@alisonlomaka
Copy link
Member

alisonlomaka commented Dec 12, 2024 via email

@alisonlomaka
Copy link
Member

alisonlomaka commented Dec 12, 2024 via email

@alisonlomaka
Copy link
Member

alisonlomaka commented Dec 12, 2024 via email

@alisonlomaka
Copy link
Member

alisonlomaka commented Dec 12, 2024 via email

Copy link
Contributor

@DaveTryon DaveTryon left a comment

Choose a reason for hiding this comment

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

LGTM

@alisonlomaka
Copy link
Member

alisonlomaka commented Dec 16, 2024 via email

@codecov-commenter
Copy link

codecov-commenter commented Dec 16, 2024

Codecov Report

Attention: Patch coverage is 81.43526% with 119 lines in your changes missing coverage. Please review.

Project coverage is 46.47%. Comparing base (fd23d63) to head (abc57b9).

Files with missing lines Patch % Lines
...crosoft.Sbom.Parsers.Spdx30SbomParser/Generator.cs 84.15% 44 Missing and 20 partials ⚠️
...m.Parsers.Spdx30SbomParser/Utils/SPDXExtensions.cs 68.05% 15 Missing and 8 partials ⚠️
...SbomParser/Exceptions/MissingHashValueException.cs 0.00% 9 Missing ⚠️
...m.Parsers.Spdx30SbomParser/Entities/NoneElement.cs 0.00% 6 Missing ⚠️
src/Microsoft.Sbom.Common/GeneratorUtils.cs 61.53% 3 Missing and 2 partials ⚠️
...s.Spdx30SbomParser/Entities/FormatEnforcedSPDX3.cs 0.00% 4 Missing ⚠️
...crosoft.Sbom.Parsers.Spdx22SbomParser/Generator.cs 89.28% 2 Missing and 1 partial ⚠️
...ers.Spdx30SbomParser/Entities/ContentIdentifier.cs 0.00% 2 Missing ⚠️
...arsers.Spdx30SbomParser/Utils/ElementSerializer.cs 80.00% 2 Missing ⚠️
....Parsers.Spdx30SbomParser/Entities/CreationInfo.cs 83.33% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #830       +/-   ##
===========================================
- Coverage   69.98%   46.47%   -23.52%     
===========================================
  Files         277      355       +78     
  Lines        8700    14151     +5451     
  Branches     1014     1163      +149     
===========================================
+ Hits         6089     6577      +488     
- Misses       2091     7026     +4935     
- Partials      520      548       +28     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pragnya17 pragnya17 force-pushed the ppandrate_generateSpdx3.0 branch from c772392 to 7447224 Compare December 16, 2024 22:26
@pragnya17 pragnya17 enabled auto-merge (squash) December 16, 2024 22:35
@pragnya17
Copy link
Contributor Author

@pragnya17 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree [company="{Microsoft}"]

@pragnya17
Copy link
Contributor Author

@microsoft-github-policy-service agree company="Microsoft"

@pragnya17 pragnya17 merged commit 43e316d into main Dec 16, 2024
7 checks passed
@pragnya17 pragnya17 deleted the ppandrate_generateSpdx3.0 branch December 16, 2024 22:38
@alisonlomaka
Copy link
Member

alisonlomaka commented Dec 18, 2024 via email

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.

5 participants