From 2b2d80314a6d215313d0def232750dbe9c3b1b6f Mon Sep 17 00:00:00 2001 From: shipperizer Date: Mon, 14 Oct 2024 16:28:19 +0100 Subject: [PATCH] chore: add deb security part for oci-factory listing --- rockcraft.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rockcraft.yaml b/rockcraft.yaml index 45f1ed36..68218bcf 100644 --- a/rockcraft.yaml +++ b/rockcraft.yaml @@ -61,3 +61,13 @@ parts: # Build the binary go mod download go build -ldflags="${go_linker_flags}" -o ${CRAFT_PART_INSTALL}/bin/kratos + + deb-security-manifest: + plugin: nil + after: + - util + - shell + override-prime: | + set -x + mkdir -p $CRAFT_PRIME/usr/share/rocks/ + (echo "# os-release" && cat /etc/os-release && echo "# dpkg-query" && dpkg-query --admindir=$CRAFT_PRIME/var/lib/dpkg/ -f '${db:Status-Abbrev},${binary:Package},${Version},${source:Package},${Source:Version}\n' -W) > $CRAFT_PRIME/usr/share/rocks/dpkg.query