Problem/Motivation
When running security review with Drush on a site where the default language is not English, then \Drupal\security_review\Commands\SecurityReviewCommands::formatResults doesn't find the checks given in the result. The $check_name in the default language and that never matches anything.
Proposed resolution
When building the result in \Drupal\security_review\Commands\SecurityReviewCommands::securityReview, use the ID of the check plugin, not its name.
Issue fork security_review-3557623
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
jurgenhaasComment #4
smustgrave commentedCan we add a test case, module is lacking in that
Comment #5
jurgenhaasI won't be able to do that, but I can see that it would be valueable.
Comment #6
smustgrave commentedI’ll try and find time. This module has been lacking in my attention that’s my fault
Comment #7
smustgrave commentedHey sorry mind providing more concrete steps to reproduce? Changing the default language doesn't break anything for me.
Comment #8
jurgenhaas@smustgrave are you using
drush secrevafter you've changed the default language, or going through the UI?Over here, this happens on the latest Drupal 10.5.6 with
drush secrevon all sites that are configured that way.Comment #9
smustgrave commentedI tested with drush secrev
Comment #11
smustgrave commentedran into this issue fixing another issue and don't know why we would use the title for anything really so I'm merging.