diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-02 17:41:05 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-02 17:41:05 -0800 |
commit | cc877c53abbb1a8799b35dddac35b963dd5ecfdd (patch) | |
tree | 64348dd0f8387a3e7d22b1ae9430521ffdc83b91 | |
parent | 5b2b9a1f1fcfa323ae56d0d0214ff61bb6088321 (diff) | |
download | gitlab-ce-cc877c53abbb1a8799b35dddac35b963dd5ecfdd.tar.gz |
Add rake task for brakeman
-rw-r--r-- | lib/tasks/brakeman.rake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/tasks/brakeman.rake b/lib/tasks/brakeman.rake new file mode 100644 index 00000000000..0a1e76ea822 --- /dev/null +++ b/lib/tasks/brakeman.rake @@ -0,0 +1,9 @@ +desc 'Security check via brakeman' +task :brakeman do + if system("brakeman -w3 -z") + exit 0 + else + puts 'Security check failed' + exit 1 + end +end |