Skip to content

Commit

Permalink
Merge pull request #6 from 10up/fix/bug-fixes
Browse files Browse the repository at this point in the history
Fix wordpress path for themes and plugins WPCLI vuln scan command
  • Loading branch information
douz authored Oct 11, 2024
2 parents 8aeb30e + 71741a6 commit 75371fe
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 75371fe

Please sign in to comment.