Skip to content

Fixed checkov pkgconf pipeline test failure #44540

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion checkov.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Loading