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 wordpress path for themes and plugins WPCLI vuln scan command #6

Merged
merged 1 commit into from
Oct 11, 2024
Merged
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
4 changes: 2 additions & 2 deletions image/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function wp_themes_vuln_scan {
if [ -z "${THEMES_SCAN_OUTPUT}" ]; then
shell_green "No theme vulnerabilities found"
else
wp --allow-root vuln theme-status --reference --format=yaml
wp --allow-root --path=wordpress/ vuln theme-status --reference --format=yaml
shell_red "**** THEME VULNERABILITIES FOUND!!! **** PLEASE SEE REPORT ABOVE ****"
# If no_fail input is set to true, exit without failure even if there are errors
if [ "${INPUT_NO_FAIL}" = "true" ]; then
Expand All @@ -155,7 +155,7 @@ function wp_plugins_vuln_scan {
if [ -z "${PLUGINS_SCAN_OUTPUT}" ]; then
shell_green "No plugin vulnerabilities found"
else
wp --allow-root vuln plugin-status --reference --format=yaml
wp --allow-root --path=wordpress/ vuln plugin-status --reference --format=yaml
shell_red "**** PLUGIN VULNERABILITIES FOUND!!! **** PLEASE SEE REPORT ABOVE ****"
# If no_fail input is set to true, exit without failure even if there are errors
if [ "${INPUT_NO_FAIL}" = "true" ]; then
Expand Down
Loading