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

Metadata component is missing entries for hashes etc #340

Closed
danhallin opened this issue Sep 26, 2023 · 2 comments
Closed

Metadata component is missing entries for hashes etc #340

danhallin opened this issue Sep 26, 2023 · 2 comments

Comments

@danhallin
Copy link

When generating a bom the metadata component does not get assigned the same values as entries in component list.

Steps to reproduce

git clone https://github.com/CycloneDX/cyclonedx-gradle-plugin.git
cd cyclonedx-gradle-plugin
./gradlew cyclonedxbom
cat build/reports/bom.json

Expected result

metadata.component should contain entries for hashes / description / licenses / purl

Actual result

metadata.component does not contain entries for hashes / description / licenses / purl

@skhokhlov
Copy link
Member

  1. It's not clear what exactly must be used for hash calculation for the main component. For libraries jar files are using for it, but for the project itself jar file is not a required thing.
  2. Raised a new issue to add project description: Introduce a way to provide project description #472
  3. You can provide licenses for your project using licenseChoice. Example: https://github.com/CycloneDX/cyclonedx-gradle-plugin?tab=readme-ov-file#adding-licenses-data
  4. Component in metadata contains PURL. Example:
    "component" : {
      "group" : "org.cyclonedx",
      "name" : "cyclonedx-gradle-plugin",
      "version" : "1.8.2",
      "purl" : "pkg:maven/org.cyclonedx/[email protected]?type=jar",
      "type" : "library",
      "bom-ref" : "pkg:maven/org.cyclonedx/[email protected]?type=jar"
    }

@skhokhlov skhokhlov closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2024
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants