@@ -29,6 +29,7 @@ variables:
stages:
- build
- test
+ - cve-check
default:
before_script:
@@ -48,6 +49,7 @@ default:
- large
variables:
base_yaml: "kas-cip.yml:kas/board/${target}.yml"
+ dpkg_status: "cip-core-image-*.dpkg_status"
script:
- if [ "${use_rt}" = "enable" ]; then base_yaml="${base_yaml}:kas/opt/rt.yml"; fi
- if [ "${extension}" != "none" ]; then base_yaml="${base_yaml}:kas/opt/${extension}.yml"; fi
@@ -60,9 +62,17 @@ default:
- if [ "${encrypt}" = "enable" ]; then base_yaml="${base_yaml}:kas/opt/encrypt-partitions.yml"; fi
- echo "Building ${base_yaml}"
- kas build ${base_yaml}
- - if [ "${deploy}" = "enable" ]; then scripts/deploy-cip-core.sh ${release} ${target} ${extension} ${dtb} ${CI_COMMIT_REF_SLUG}; fi
+ - if [ "${deploy}" = "enable" ]; then scripts/deploy-cip-core.sh ${release} ${target} ${extension} ${dtb} ${CI_COMMIT_REF_SLUG} ${dpkg_status}; fi
- if [ "${deploy_kernelci}" = "enable" ]; then scripts/deploy-kernelci.py ${release} ${target} ${extension} ${dtb}; fi
+cve-checks:
+ stage: cve-check
+ image: registry.gitlab.com/cip-playground/debian-cve-checker:latest
+ script:
+ - scripts/run-cve-checks.sh
+ rules:
+ - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_JOB_NAME == "cve-checks"
+
# base image
build:simatic-ipc227e-base:
extends: