diff --git a/checkov.yaml b/checkov.yaml index 1b6100976e1..6bb8361d67b 100644 --- a/checkov.yaml +++ b/checkov.yaml @@ -1,7 +1,7 @@ package: name: checkov version: 3.0.34 - epoch: 1 + epoch: 2 description: "static code and composition analysis tool for IaC" copyright: - license: MIT @@ -42,11 +42,26 @@ pipeline: rm -rf tests *_tests setup.py ln -s /usr/share/app/checkov/checkov/main.py "${{targets.destdir}}"/usr/bin/checkov + # Relocate .pc files to /usr/lib/pkgconfig + mkdir -p "${{targets.destdir}}"/usr/lib/pkgconfig/ + + find "${{targets.destdir}}"/usr/share/app/checkov -type f -name "*.pc" | while read -r pc_file; do + dname=$(printf "${pc_file}" | sed -e "s,${{targets.destdir}},,") + dname=$(dirname "${dname}") + # Adjust "pcfiledir" so that it reflects the right location of each .pc file. + if grep -q "pcfiledir" "${pc_file}"; then + sed -i -e "s,\${pcfiledir},${dname}," "${pc_file}" + fi + # Move the .pc file to /usr/lib/pkgconfig/ + mv "${pc_file}" "${{targets.destdir}}"/usr/lib/pkgconfig/ + done + - uses: strip test: pipeline: - uses: test/tw/ldd-check + - uses: test/pkgconf update: enabled: false