-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
Jenkins-core with minimal version is included in bom.json when running makeAggregateBom for a Jenkins plugin #588
Comments
May I have some update please? Thanks. |
I see the consequence, yes. it seems you're not interested into build time, but runtime (like OBOM): that's not the purpose of cyclonedx-maven-plugin. |
Thanks for the reply. Yes, we are mainly interested in run time. We are trying syft now. Thanks. |
I'm interested to know how you expect to use syft on a Jenkins plugin and what results your get:
Thinking out loud: Jenkins plugin is not distributed as a container image but IIRC |
Yes, luckily syft supports .jpi and .hpi format, so it will generate the cyclone json file directly. The cmd is something like this: syft ./artifactory.jpi -o cyclonedx-json=artifactory.sbom.json |
FTR: use case cited here helped me dig into more use cases for CycloneDX/specification#578 |
I am trying creating bom.json for many Jenkins plugins, but I found the generated bom.json includes jenkins-core dependency with the minimal version declared in the plugin's pom.xml, here is a sample for artifactory plugin https://github.com/jenkinsci/artifactory-plugin.
My Jenkins version(2.479.2) is much higher than the minimal version(2.263.1). After the bom.json is uploaded into DT, its risk score is very high because of this very old 2.263.1 dependency, which is a false alarm, because my Jenkins has upgraded to 2.479.2. Any way to exclude this dependency, I tried -DexcludeArtifactId, but the Jenkins-core artifactid didn't exist in the pom.xml.
Here is the version defined in pom.xml.
...
<jenkins.version>2.263.1</jenkins.version>
<java.level>8</java.level>
...
Here is the dependency generated in bom.json
......
"type" : "library",
"bom-ref" : "pkg:maven/org.jenkins-ci.main/[email protected]?type=jar",
"group" : "org.jenkins-ci.main",
"name" : "jenkins-core",
"version" : "2.263.1",
"description" : "Jenkins core code and view files to render HTML.",
......
I manually add this plugin into the artifactory plugin's pom.xml.
......
......
Did I do anything wrong?
Thanks. Any comments are welcome.
The text was updated successfully, but these errors were encountered: