Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

Fix metadata (fix root test)#103

Open
andreas-hilti wants to merge 1 commit intoCycloneDX:mainfrom
andreas-hilti:fix/metadata
Open

Fix metadata (fix root test)#103
andreas-hilti wants to merge 1 commit intoCycloneDX:mainfrom
andreas-hilti:fix/metadata

Conversation

@andreas-hilti
Copy link
Contributor

Fix the metadata component by fixing the test for the root component.

Closes: #101

This is only an issue when used for conanfile.py (rather than conanfile.txt).

Signed-off-by: andreas hilti <andreas.hilti@bluewin.ch>
@andreas-hilti
Copy link
Contributor Author

For the conanfile.py from #101, it produces the following SBOM:

{
  "bomFormat": "CycloneDX",
  "specVersion": "1.3",
  "serialNumber": "urn:uuid:92a2a7ad-2470-4d04-9e3c-def967bfc4e3",
  "version": 1,
  "metadata": {
    "component": {
      "bom-ref": "conan-test@1.0.0",
      "type": "application",
      "name": "conan-test",
      "version": "1.0.0"
    }
  },
  "components": [
    {
      "bom-ref": "pkg:conan/fmt@8.0.0?repository_url=https://center.conan.io",
      "type": "library",
      "name": "fmt",
      "version": "8.0.0",
      "purl": "pkg:conan/fmt@8.0.0?repository_url=https://center.conan.io"
    }
  ],
  "dependencies": [
    {
      "ref": "pkg:conan/fmt@8.0.0?repository_url=https://center.conan.io",
      "dependsOn": []
    },
    {
      "ref": "conan-test@1.0.0",
      "dependsOn": [
        "pkg:conan/fmt@8.0.0?repository_url=https://center.conan.io"
      ]
    }
  ]
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Metadata not correct if used with conanfile.py

1 participant