-
Notifications
You must be signed in to change notification settings - Fork 750
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What happened:
Tried to produce a SBOM of the core20 revision 2379 Base snap using syft. The SBOM didn't include the package names and versions which are listed in the manifest files (e.g. dpkg.yaml / dpkg.list).
What you expected to happen:
The SBOM included all the package names and versions present/used to create the snap (listed in the dpkg.yaml/.list). This is also the case for the other types of Snaps (kernel, system, gadget and snapd).
Steps to reproduce the issue:
snap download core20 --revision 2379syft scan core20_2379.snap -o spdx-json=core20_2379.snap.syft.spdx.jsonunsquashfs -d core20_2379 core20_2379.snap usr/share/snappy/dpkg.yaml- Compare the package "name" and "versionInfo" fields in the SBOM to the dpkg.yaml
Anything else we need to know?:
The type of Snap can be determined from the meta/snap.yaml "type:" field. The Snap type determines where to get the manifest / package info used to build the Snap.
- base: /usr/share/snappy/dpkg.yaml, dpkg.list
- kernel: version in /doc/linux-modules-*/changelog.Debian.gz ; and extract initrd/main/usr/share/doc/dpkg.yaml from the initrd.img
- system and gadget: snap/manifest.yaml: "primed-stage-packages:"
- snapd: snap/snapcraft.yaml
Environment:
- Output of
syft version: syft 1.31.0 - OS (e.g:
cat /etc/os-releaseor similar): Ubuntu 22.04
popey and spiffcs
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done