Closed (fixed)
Project:
Security Review
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
29 Sep 2017 at 10:51 UTC
Updated:
8 May 2020 at 21:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
kmoll commentedHere is a patch for the initial implementation.
Comment #3
kmoll commentedI've made a few tweaks and fixed some errors.
Comment #4
kmoll commentedComment #5
kmoll commentedComment #6
badjava commentedCheck your command names for consistency as they should be in the format 'security-review:action'.
- security-review:security-review
Comment #7
kmoll commentedI've updated it to security:review, and removed the auto-generated function
Comment #8
kmoll commentedI moved the drush command service definition to a drush.services.yml file to follow best practices.
Comment #9
malcomio commentedI tested this patch against the current dev branch. It applies cleanly, and running drush secrev succeeds, but doesn't give any meaningful output.
Comment #10
malcomio commentedSeems like my previous test had an unrelated environment problem - I fixed that, and the command gave sensible output:
Comment #11
joestewart commented"--check" and "--skip" should accept comma separated strings. Updated patch attached.
Comment #12
hey_germanoPatch applies to latest dev. I tested each option with Drush 9.4.0, and everything worked as expected.
Comment #13
moshe weitzman commentedThis can be committed as is (please!). If it gets rerolled, consider adding the following minor details.
self::REQ.drush_set_error()should be replaxced by a plain old ExceptionComment #14
gregglesI addressed items 1 and 3 from your feedback moshe. Attached is an updated patch and interdiff.
Comment #15
shrop commentedI did some testing on the updated patch with Guardr. See: #3130712: Test and apply new version of the patch we need for Security Review for Drush 9. The patch in #14 applies and works just fine! Thank you.
Comment #17
gregglesThanks for the review, shrop. Now committed.