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

10 lines
194 B
Ruby
Raw Normal View History

2015-03-02 20:41:05 -05:00
desc 'Security check via brakeman'
task :brakeman do
if system("brakeman --skip-files lib/backup/repository.rb -w3 -z")
2015-03-02 20:41:05 -05:00
exit 0
else
puts 'Security check failed'
exit 1
end
end