From patchwork Mon Aug 12 11:16:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sai.Sathujoda@toshiba-tsip.com X-Patchwork-Id: 13760439 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2F43C3DA7F for ; Mon, 12 Aug 2024 11:17:23 +0000 (UTC) Received: from mo-csw.securemx.jp (mo-csw.securemx.jp [210.130.202.152]) by mx.groups.io with SMTP id smtpd.web11.43903.1723461434162908544 for ; Mon, 12 Aug 2024 04:17:14 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: toshiba-tsip.com, ip: 210.130.202.152, mailfrom: sai.sathujoda@toshiba-tsip.com) Received: by mo-csw.securemx.jp (mx-mo-csw1802) id 47CBHBQ21461635; Mon, 12 Aug 2024 20:17:11 +0900 X-Iguazu-Qid: 2yAaPcpxnMhg5wwI6K X-Iguazu-QSIG: v=2; s=0; t=1723461431; q=2yAaPcpxnMhg5wwI6K; m=GmqXVAxjNKJQZA41CInNtMW5g/NV6IRd+QM0jem2KDU= Received: from imx2-a.toshiba.co.jp (imx2-a.toshiba.co.jp [106.186.93.35]) by relay.securemx.jp (mx-mr1800) id 47CBHA8G1143380 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 12 Aug 2024 20:17:11 +0900 From: Sai.Sathujoda@toshiba-tsip.com To: cip-dev@lists.cip-project.org, jan.kiszka@siemens.com Cc: sai ashrith sathujoda , dinesh.kumar@toshiba-tsip.com, kazuhiro3.hayashi@toshiba.co.jp Subject: [isar-cip-core v2 1/3] scripts/run-cve-checks.sh: Extract suite from dpkg status file name Date: Mon, 12 Aug 2024 16:46:03 +0530 X-TSB-HOP2: ON Message-Id: <20240812111605.1246549-2-Sai.Sathujoda@toshiba-tsip.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20240812111605.1246549-1-Sai.Sathujoda@toshiba-tsip.com> References: <20240812111605.1246549-1-Sai.Sathujoda@toshiba-tsip.com> MIME-Version: 1.0 X-OriginalArrivalTime: 12 Aug 2024 11:17:08.0815 (UTC) FILETIME=[2BBAEDF0:01DAECA9] List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 12 Aug 2024 11:17:23 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/16776 From: sai ashrith sathujoda cve_checker.py script in debian-cve-checker repository expects relevant suite as input which is needed for debsecan tool to list vulnerabilities of that suite. Signed-off-by: sai ashrith sathujoda --- scripts/run-cve-checks.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/run-cve-checks.sh b/scripts/run-cve-checks.sh index 9cebc90..12fd74e 100755 --- a/scripts/run-cve-checks.sh +++ b/scripts/run-cve-checks.sh @@ -32,7 +32,8 @@ aws s3 cp --no-progress --recursive s3://download.cip-project.org/cip-core/cve-c mkdir cve-reports for file in *.dpkg_status; do echo "Checking $file" - cve_checker.py --status "$file" --output ./cve-reports/"${file%.dpkg_status}".csv + suite=$(echo "${file%.dpkg_status}" | awk -F- '{print $NF}') + cve_checker.py --suite "$suite" --status "$file" --output ./cve-reports/"${file%.dpkg_status}".csv done # Synchronize the CVE reports to AWS (it will delete old reports) From patchwork Mon Aug 12 11:16:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sai.Sathujoda@toshiba-tsip.com X-Patchwork-Id: 13760440 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E4632C52D7F for ; Mon, 12 Aug 2024 11:17:23 +0000 (UTC) Received: from mo-csw.securemx.jp (mo-csw.securemx.jp [210.130.202.158]) by mx.groups.io with SMTP id smtpd.web10.43894.1723461434369940209 for ; Mon, 12 Aug 2024 04:17:15 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: toshiba-tsip.com, ip: 210.130.202.158, mailfrom: sai.sathujoda@toshiba-tsip.com) Received: by mo-csw.securemx.jp (mx-mo-csw1122) id 47CBHCG41860396; Mon, 12 Aug 2024 20:17:12 +0900 X-Iguazu-Qid: 2rWgZF6BSVIE2ffdr6 X-Iguazu-QSIG: v=2; s=0; t=1723461432; q=2rWgZF6BSVIE2ffdr6; m=gtDccMk+BSMMBgPVvPXgqqBay1x621z8l4hVidAnM3E= Received: from imx12-a.toshiba.co.jp ([38.106.60.135]) by relay.securemx.jp (mx-mr1120) id 47CBHBss3696334 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 12 Aug 2024 20:17:12 +0900 From: Sai.Sathujoda@toshiba-tsip.com To: cip-dev@lists.cip-project.org, jan.kiszka@siemens.com Cc: sai ashrith sathujoda , dinesh.kumar@toshiba-tsip.com, kazuhiro3.hayashi@toshiba.co.jp Subject: [isar-cip-core v2 2/3] scripts/deploy-cip-core.sh: Include release name in dpkg status filename Date: Mon, 12 Aug 2024 16:46:04 +0530 X-TSB-HOP2: ON Message-Id: <20240812111605.1246549-3-Sai.Sathujoda@toshiba-tsip.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20240812111605.1246549-1-Sai.Sathujoda@toshiba-tsip.com> References: <20240812111605.1246549-1-Sai.Sathujoda@toshiba-tsip.com> MIME-Version: 1.0 X-OriginalArrivalTime: 12 Aug 2024 11:17:08.0894 (UTC) FILETIME=[2BC6FBE0:01DAECA9] List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 12 Aug 2024 11:17:23 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/16779 From: sai ashrith sathujoda This commit includes release name as part of dpkg status filename so that it can be passed as "--suite" to cve_checker.py script. Signed-off-by: sai ashrith sathujoda --- scripts/deploy-cip-core.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/deploy-cip-core.sh b/scripts/deploy-cip-core.sh index c75f2d1..6e4dfd7 100755 --- a/scripts/deploy-cip-core.sh +++ b/scripts/deploy-cip-core.sh @@ -71,4 +71,10 @@ fi # * cve-reports: folder to store the cve-reports generated from the dpkg status files # * they can be linked from the release website DPKG_STATUS_FILENAME=${CI_JOB_NAME#build:}.dpkg_status + +# As default release name is not included in CI_JOB_NAME, it is appended to dpkg status file name +# For further use in run-cve-checks.sh script to get the right suite +if ! echo "$CI_JOB_NAME" | grep -q "$1"; then + DPKG_STATUS_FILENAME=${CI_JOB_NAME#build:}-$1.dpkg_status +fi aws s3 cp --no-progress build/tmp/deploy/images/"$TARGET"/cip-core-image-*.dpkg_status s3://download.cip-project.org/cip-core/cve-checks/dpkg-status/"$DPKG_STATUS_FILENAME" From patchwork Mon Aug 12 11:16:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sai.Sathujoda@toshiba-tsip.com X-Patchwork-Id: 13760442 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26997C531DC for ; Mon, 12 Aug 2024 11:17:25 +0000 (UTC) Received: from mo-csw.securemx.jp (mo-csw.securemx.jp [210.130.202.152]) by mx.groups.io with SMTP id smtpd.web10.43895.1723461434418525033 for ; Mon, 12 Aug 2024 04:17:15 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: toshiba-tsip.com, ip: 210.130.202.152, mailfrom: sai.sathujoda@toshiba-tsip.com) Received: by mo-csw.securemx.jp (mx-mo-csw1802) id 47CBHDXX1461659; Mon, 12 Aug 2024 20:17:13 +0900 X-Iguazu-Qid: 2yAacTOYDDL6ePuOie X-Iguazu-QSIG: v=2; s=0; t=1723461432; q=2yAacTOYDDL6ePuOie; m=ZFzDWWQLJ9c4jp2cpynXaIm69sebGMGWz3MvFTkNR3o= Received: from imx2-a.toshiba.co.jp (imx2-a.toshiba.co.jp [106.186.93.35]) by relay.securemx.jp (mx-mr1802) id 47CBHBXa907480 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 12 Aug 2024 20:17:12 +0900 From: Sai.Sathujoda@toshiba-tsip.com To: cip-dev@lists.cip-project.org, jan.kiszka@siemens.com Cc: sai ashrith sathujoda , dinesh.kumar@toshiba-tsip.com, kazuhiro3.hayashi@toshiba.co.jp Subject: [isar-cip-core v2 3/3] .gitlab-ci.yml: Update debian-cve-checker image reference Date: Mon, 12 Aug 2024 16:46:05 +0530 X-TSB-HOP2: ON Message-Id: <20240812111605.1246549-4-Sai.Sathujoda@toshiba-tsip.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20240812111605.1246549-1-Sai.Sathujoda@toshiba-tsip.com> References: <20240812111605.1246549-1-Sai.Sathujoda@toshiba-tsip.com> MIME-Version: 1.0 X-OriginalArrivalTime: 12 Aug 2024 11:17:08.0972 (UTC) FILETIME=[2BD2E2C0:01DAECA9] List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 12 Aug 2024 11:17:25 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/16777 From: sai ashrith sathujoda This commit updates image reference of debian-cve-checker project. Signed-off-by: sai ashrith sathujoda --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ab1835a..bc98ec9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -456,7 +456,7 @@ test:qemu-arm-IEC: cve-checks: stage: cve-check needs: [] - image: registry.gitlab.com/cip-playground/debian-cve-checker:latest + image: registry.gitlab.com/cip-project/cip-core/debian-cve-checker:build-latest tags: - small script: