-
-
Notifications
You must be signed in to change notification settings - Fork 217
Open
Description
Running cdxgen with research profile on the hyades-apiserver repository yields occurrences with incorrect line numbers.
git clone https://github.com/DependencyTrack/hyades-apiserver.git cdxgen-hyades-apiserver
cd cdxgen-hyades-apiserver
# For reproducability. This is the latest commit as of creation of this issue.
git reset --hard cf2744a829bf97d61fe42c80a019d52e5fb56098
docker run --rm \
-e CDXGEN_DEBUG_MODE=debug \
-v /tmp:/tmp \
-v $(pwd):/app:rw \
--pull always \
-t ghcr.io/cyclonedx/cdxgen:master \
-o /app/bom.json -t java --profile research . -p
jq '.' bom.json > bom-formatted.jsonResult: bom-formatted.json
For the component alpine-common, the first 3 occurrences listed are:
{
"location": "src/main/java/org/dependencytrack/auth/Permissions.java#36"
},
{
"location": "src/main/java/org/dependencytrack/common/ClusterInfo.java#91"
},
{
"location": "src/main/java/org/dependencytrack/common/HttpClientPool.java#200"
}- Line 36 in
Permissions.javais the definition of an enum field. ClusterInfo.javaonly has85lines.HttpClientPool.javaonly has 137 lines.
Perhaps there is some sort of offset which is miscalculated?
prabhu
Metadata
Metadata
Assignees
Labels
No labels