Comments (2)
Assuming you're referring to the java manifest metadata type, which was:
Lines 68 to 71 in fef0e54
And is now:
Lines 71 to 74 in f4e1896
This was a change made in #2553 (which is the closest culprit for what you're describing).
That being said, I'm not seeing the behavior you're referring to:
$ syft cloudbees/cloudbees-core-mm:latest -o json > /tmp/core-mm.json
$ cat /tmp/core-mm.json | jq '.artifacts[] | select(.metadata.manifest.main != null)'
{
"id": "f5da67d7d1f4d742",
"name": "aws-java-sdk-codeguruprofiler",
"version": "1.11.995",
"type": "java-archive",
"foundBy": "java-archive-cataloger",
"locations": [
{
"path": "/usr/share/jenkins/jenkins.war",
"layerID": "sha256:545b89fe82a087acefa3ce12783e1da0a1268224364c7310341e408d73985846",
"accessPath": "/usr/share/jenkins/jenkins.war:WEB-INF/plugins/aws-java-sdk.hpi:WEB-INF/lib/aws-java-sdk-codeguruprofiler-1.11.995.jar",
"annotations": {
"evidence": "primary"
}
}
],
"licenses": [],
"language": "java",
"cpes": [... snip...],
"purl": "pkg:maven/com.amazonaws/[email protected]",
"metadataType": "java-archive",
"metadata": {
"virtualPath": "/usr/share/jenkins/jenkins.war:WEB-INF/plugins/aws-java-sdk.hpi:WEB-INF/lib/aws-java-sdk-codeguruprofiler-1.11.995.jar",
"manifest": {
"main": [
{
"key": "Manifest-Version",
"value": "1.0"
},
{
"key": "Archiver-Version",
"value": "Plexus Archiver"
},
{
"key": "Built-By",
"value": "root"
},
{
"key": "Created-By",
"value": "Apache Maven 3.5.4"
},
{
"key": "Build-Jdk",
"value": "1.8.0_171"
}
]
},
"pomProperties": {
"path": "META-INF/maven/com.amazonaws/aws-java-sdk-codeguruprofiler/pom.properties",
"name": "",
"groupId": "com.amazonaws",
"artifactId": "aws-java-sdk-codeguruprofiler",
"version": "1.11.995"
},
"digest": [
{
"algorithm": "sha1",
"value": "d16a17cdb41c76ef41b6172d903db751cccda395"
}
]
}
}
...
There are a lot more examples in that output too.
Do you have any example public docker images that you can share that show this behavior? (with java packages you were expecting to have a main manifest section that you are seeing as null
?)
from syft.
Since we haven't heard back, we'll go ahead and close this issue, but if you need more help, feel free to let us know! Thanks!
from syft.
Related Issues (20)
- Syft reports some fw* packages, which are nowhere to find HOT 4
- Add support for dnf packages HOT 1
- Support Swift Package Manager Package.resolved schema version 3 HOT 2
- Catalog TiDB binary HOT 1
- Redis not listed in the artifact lists of the bitnami/redis image HOT 2
- License not pickedup for binaries like java (openjdk), node (nodejs) HOT 4
- Ignore Go compiler affecting CVE when Docker image only contains a binary compiled with Go HOT 2
- Pom parser not resolving all dependency versions
- SBOM is generated with empty name HOT 5
- components inside tar.gz / tgz not picked up HOT 2
- Golang: Search remote licenses not working in a CI pipeline when scanning Docker image HOT 5
- Clearly document the fact that CPE strings could be made up HOT 1
- Recognition of files in a folder works inconsistently between Linux distributions. HOT 3
- New version 1.3.0 leads to "too many open files" while scanning bigger images HOT 1
- Add `bun-lock-cataloger` & `bun-binary-cataloger` catalogers HOT 1
- Improve linting for `defer Close` type issues HOT 2
- Binary copied to image omitted from SBOM HOT 4
- Relationships / Dependencies are present in Syft json and SPDX json files but sometimes not in Cyclonedx json file format HOT 8
- Not all the packages are getting imported in Blackduck scanner HOT 6
- Scanning a git repository folder present in /tmp produce an empty sbom HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from syft.