gitlab-org--gitlab-foss/lib/tasks/brakeman.rake

10 lines
217 B
Ruby

desc 'Security check via brakeman'
task :brakeman do
if system("brakeman --skip-files lib/backup/repository.rb -w3 -z")
puts 'Security check succeed'
else
puts 'Security check failed'
exit 1
end
end