diff --git a/.drone.yml b/.drone.yml index 894a40a62ba9f..d1e7183161916 100644 --- a/.drone.yml +++ b/.drone.yml @@ -71,6 +71,17 @@ pipeline: commands: - bash libraries/vendor/joomla/test-system/src/drone-run.sh "$(pwd)" + analysis: + image: rips/rips-cli + secrets: [rips_username, rips_password] + commands: + - export RIPS_BASE_URI='https://api.rips.joomla.org' + - export RIPS_USERNAME=$RIPS_USERNAME + - export RIPS_PASSWORD=$RIPS_PASSWORD + - if [ -z $RIPS_USERNAME ]; then echo "The analysis check require username and passwords"; fi + - if [ -z $RIPS_USERNAME ]; then exit 0; fi + - rips-cli rips:scan:start -a 3 -t 1 -p $(pwd) -t 1 -T $DRONE_REPO_OWNER-$DRONE_BRANCH || { echo "Please contact the security team at security@joomla.org"; exit 1; } + services: mysql: image: mysql:5.7