sbomqs: DTrack Score: Failed to get project: invalid character '<'
Hello,
I’m trying to tag a Dtrack project with sbomqs
score.
The command I am running is:
sbomqs dtrackScore -D -t true -u https://dependency-track-host-url-of-my-company.com -k $DTRACK_API_KEY $DTRACK_PROJECT_UUID
The output is:
2023-08-24T18:39:24.329-0400 DEBUG engine/dtrack.go:46 engine.DtrackScore()
2023-08-24T18:39:24.331-0400 DEBUG engine/dtrack.go:48 Config: &{Url:https://dependency-track-host-url-of-my-company.com ApiKey:********* ProjectIds:[de46d3c2-f650-4ea3-a15b-db3bc38c02da] Json:false Basic:false Detailed:false TagProjectWithScore:true}
2023-08-24T18:39:24.331-0400 DEBUG engine/dtrack.go:58 Processing project de46d3c2-f650-4ea3-a15b-db3bc38c02da
2023-08-24T18:39:24.736-0400 FATAL engine/dtrack.go:62 Failed to get project: invalid character '<' looking for beginning of value
github.com/interlynk-io/sbomqs/pkg/engine.DtrackScore
github.com/interlynk-io/sbomqs@v0.0.19/pkg/engine/dtrack.go:62
github.com/interlynk-io/sbomqs/cmd.glob..func1
github.com/interlynk-io/sbomqs@v0.0.19/cmd/dtrackScore.go:48
github.com/spf13/cobra.(*Command).execute
github.com/spf13/cobra@v1.7.0/command.go:940
github.com/spf13/cobra.(*Command).ExecuteC
github.com/spf13/cobra@v1.7.0/command.go:1068
github.com/spf13/cobra.(*Command).Execute
github.com/spf13/cobra@v1.7.0/command.go:992
github.com/interlynk-io/sbomqs/cmd.Execute
github.com/interlynk-io/sbomqs@v0.0.19/cmd/root.go:42
main.main
github.com/interlynk-io/sbomqs@v0.0.19/main.go:20
runtime.main
runtime/proc.go:250
Tried from:
- My local M2 MacBook Pro
- Bitbucket Pipelines Cloud Runner, as part of our CI
~ sbomqs version
____ ____ ___ __ __ ___ ____
/ ___| | __ ) / _ \ | \/ | / _ \ / ___|
\___ \ | _ \ | | | | | |\/| | | | | | \___ \
___) | | |_) | | |_| | | | | | | |_| | ___) |
|____/ |____/ \___/ |_| |_| \__\_\ |____/
sbomqs: sbomqs application provides sbom quality scores.
GitVersion: v0.0.19
GitCommit: 6744ad2ecf54ea0e22fb406db6bb56f8d1957871
GitTreeState: clean
BuildDate: '2023-07-13T20:56:47Z'
GoVersion: go1.20.6
Compiler: gc
Platform: darwin/arm64
I have also tried with and without the -t
option but to no avail.
Any idea on why this error is happening? I did confirm that the Project ID is accurate (copied from the URL after navigating to the project within Dependency Track)
Thank you!
About this issue
- Original URL
- State: closed
- Created 10 months ago
- Comments: 17 (10 by maintainers)
Thank you @riteshnoronha ! It works perfectly now 🥳
@aravindparappil46 v0.0.20 has been released, i have attached a success log, and how it looks like it. Please feel free to reach out if you have any other suggestions or feedback.
Yes, and
failed to stat Error: stat : no such file or directory
is an sbomqs bug, which i have fixed, and will release tomorrow.@aravindparappil46 two issues
Again please feel free for providing feedback or feature requests.
Ok testing it locally will let u know