-
Notifications
You must be signed in to change notification settings - Fork 19
feat: gitlab fetch #229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: gitlab fetch #229
Conversation
Signed-off-by: Philippe <philippe.a.aviles@lmco.com>
…lient-support Signed-off-by: Philippe <philippe.a.aviles@lmco.com>
Minder Vulnerability Report ✅Minder analyzed this PR and found it does not add any new vulnerable dependencies.
|
Signed-off-by: Philippe <philippe.a.aviles@lmco.com>
Signed-off-by: Philippe <philippe.a.aviles@lmco.com>
Signed-off-by: Philippe <philippe.a.aviles@lmco.com>
Signed-off-by: Philippe <philippe.a.aviles@lmco.com>
…lient-support Signed-off-by: Philippe <philippe.a.aviles@lmco.com>
I didn't explain what I was getting at for implementing a mockable pattern very well during our call, so hopefully this will make more sense. In my opinion, this type of implementation might make the code easier to read, maintain, and test/mock. The TL;DR version is even with nested types and interfaces, it might simplify things to abstract everything into a common flattened interface. This interface can then be implemented as a mock much more easily.
Note It might be more conventional or idiomatic to name the interfaces as "what they do" instead, such as
|
…lient-support Signed-off-by: Philippe <philippe.a.aviles@lmco.com>
Signed-off-by: Philippe <philippe.a.aviles@lmco.com>
Signed-off-by: Philippe <philippe.a.aviles@lmco.com>
40dc4d9
to
aea9562
Compare
Signed-off-by: Philippe <philippe.a.aviles@lmco.com>
Heads up: the go-gitlab package was deprecated....today: https://pkg.go.dev/github.com/xanzy/go-gitlab#section-readme |
What am I doing wrong: (running on your branch obvs) $ go run . fetch https://www.gitlab.com/hoppr/hoppr@dev
INFO fetch: Fetching from GitLab URL url=https://www.gitlab.com/hoppr/hoppr@dev
FATAL fetch: failed to save document: adding document: parsing SBOM data: detecting SBOM format: detecting format: unknown SBOM format
exit status 1 |
Signed-off-by: Philippe <philippe.a.aviles@lmco.com>
It was a bug on my part. Sorry. It's fixed now. |
Signed-off-by: Philippe <philippe.a.aviles@lmco.com>
Signed-off-by: Philippe <philippe.a.aviles@lmco.com>
Signed-off-by: Philippe <philippe.a.aviles@lmco.com>
…lient-support Signed-off-by: Philippe <philippe.a.aviles@lmco.com>
Signed-off-by: Philippe <philippe.a.aviles@lmco.com>
Signed-off-by: Philippe <philippe.a.aviles@lmco.com>
Description
This pull request adds the ability to fetch an SBOM from GitLab using the Dependency List Export web API endpoint.
Fixes #131
Type of change
How Has This Been Tested?
Checklist