ci: blackduck: integrate blackduck

set up build environment to integrate blackduck scan job.

Closes: PCF-2036
References: PCF-1794

Signed-off-by: Matthias Franck <matthias.franck@softathome.com>
This commit is contained in:
Matthias Franck 2025-06-03 18:11:23 +02:00 committed by Mouna ALOUI
parent aa458b640a
commit e1d07fa8f0
2 changed files with 7 additions and 0 deletions

View File

@ -136,6 +136,12 @@
fi
- section_end "export-rootfs"
- rm .build_failed
- sbom=$(find bin/targets* -name prplos-*.bom.cdx.json)
- target_name=$(echo "$sbom" | sed -n 's/.*prplos-\(.*\)\.bom\.cdx\.json$/\1/p')
- sudo apt update
- sudo apt install openjdk-17-jdk -y
- cd build_dir/target-*
- bash <(curl -s -L https://detect.blackduck.com/detect10.sh) --blackduck.url=https://prplfoundation.app.blackduck.com --blackduck.api.token=$BLACKDUCK_API_KEY --detect.project.name=$CI_COMMIT_REF_NAME --detect.project.version.name=$target_name
after_script:
- >

View File

@ -18,6 +18,7 @@ RUN \
libncurses5-dev \
locales \
nmap \
openjdk-17-jdk \
openssh-client \
pwgen \
python3 \