Skip to content
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

Fix ShellCheck Issues in CPE Checks #11322

Merged
merged 2 commits into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion shared/applicability/runtime_kernel_fips_enabled.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: cpe:/a:runtime-kernel-fips-enabled
title: Running kernel has fips mode enabled
check_id: runtime_kernel_fips_enabled
bash_conditional: '[ $(sysctl -a | grep -c fips_enabled.*1) -eq 1 ]'
bash_conditional: "[ \"$(sysctl -a | grep -c 'fips_enabled.*1')\" -eq 1 ]"
2 changes: 1 addition & 1 deletion shared/applicability/secure_boot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: cpe:/a:secure-boot
title: System secure boot is enabled
check_id: secure_boot_enabled
bash_conditional: "[ $(mokutil --sb-state | awk '{print $NF}') == 'enabled' ]"
bash_conditional: "[ \"$(mokutil --sb-state | awk '{print $NF}')\" == 'enabled' ]"

Loading