Generate SBOM for maven project in gitlab-ci job #870
kingnoahkong
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
@kingnoahkong, this is devops. You need a custom image that wraps all build tools. It will look similar to the cdxgen dockerfile, but use https://github.com/CycloneDX/cdxgen/blob/master/ci/Dockerfile#L135 Please share the final dockerfile once you get it working. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am new to CDXGEN and I am trying to generate SBOM for a maven project in gitlab-ci job. I can install and generate the SBOM on my local machine where I have node 21.6.0 and maven 3.8.8 but I keep getting error when the job runs in the gitlab-ci pipeline.
There are two errors depending on the image specification:
if I use
node:20
for theimage
I get the following error:if I use
maven:3.9.6-eclipse-temurin-17
I get the following error:here is my ci job:
I kind of understand that I need both images, the
node:20
for the cdxgen installation and themaven:3.9.6-eclipse-temurin-17
to generate the sbom for the maven project. My question is how do I achieve the impossible of having both images available. I have also tried to have a pre-job with node:20 as image where I can successfully install cdxgen, but it is not available in the next job where I try to generate the sbom.Any assistance will be appreciated. ( I have tried to find solutions on here and stack.. but I found nothing that could help me).
Beta Was this translation helpful? Give feedback.
All reactions