Skip to content

Components: Update logic to set evidence.location similarly to current properties.srcfile #943

@setchy

Description

@setchy
Member

Update cdxgen to populate evidence.location like it does today for properties SrcFile

Activity

hoggmania

hoggmania commented on Feb 22, 2025

@hoggmania

I did note in https://cyclonedx.org/guides/OWASP_CycloneDX-Authoritative-Guide-to-SBOM-en.pdf page 66 its should also have the relative path: -

"components": [
    {
      "type": "library",
      "name": "acme-persistence",
      "version": "1.0.0",
      "evidence": {
           "occurrences": [
               {
                    "bom-ref": "d6bf237e-4e11-4713-9f62-56d18d5e2079",
                    "location": "/path/to/component"
               }
            ]
       }
    }
]
prabhu

prabhu commented on Feb 22, 2025

@prabhu
Collaborator

We also populate evidence.identity.*.value.

prabhu

prabhu commented on Feb 22, 2025

@prabhu
Collaborator

@hoggmania changing paths to relative is a non-trivial work at this point.

hoggmania

hoggmania commented on Feb 22, 2025

@hoggmania

How can we help :-)

Give us some pointers and I'll speak with Nicklas and Spyros on how we facilitate.

prabhu

prabhu commented on Feb 24, 2025

@prabhu
Collaborator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @prabhu@setchy@hoggmania

        Issue actions

          Components: Update logic to set evidence.location similarly to current properties.srcfile · Issue #943 · CycloneDX/cdxgen