anchore / anchore/syft

Get purl url from maven dependency

Open
#498 3 comments 0 reactions 0 assignees View on GitHub
ecosystem:java enhancement
Dominant language
Go
Stars
9.6k
Forks
954
Avg merge
23h 27m
Merged PRs (30d)
48

Description

**What would you like to be added**:

I use syft to create a sbom.xml to import in dependency-track.

The sbom.xml is create from a java maven project. There are maven dependenies inlcuded like:

`
org.springframework.security
spring-security-core
5.5.2
`

As I understand from debugging the source is that to create a purl url I need a pom.properties or pom.xml in the jar file of spring-security-core.

But there is no pom.properties or pom.xml in the spring-security-core.jar from maven central.

Is there a way to create the purl url via syft anyway ?

Thanks for your help.

Best regards
Sascha Vujevic

**Why is this needed**:

I would like to see vulnerabilities in dependency track of all dependencies used in my maven project.

**Additional context**:

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the spring-security-core 5.5.2 case and inspect the generated sbom.xml when the JAR lacks pom.properties and pom.xml. Trace how Maven coordinates are obtained and converted to a purl; done means the dependency receives a valid purl without either embedded file.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
cli, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.