Sha256: bb7aa49e00ae728e203bf9201041ee01585e10022e31be48c7697778fcc0b258
Contents?: true
Size: 954 Bytes
Versions: 8
Compression:
Stored size: 954 Bytes
Contents
require 'fast_ci/brakeman/commandline' require 'fast_ci' require 'base64' require 'zlib' module FastCI module Brakeman def self.start events = [] events << ['brakeman_run'.upcase, {}] FastCI::Brakeman::Commandline.start(output_files: ['tmp/brakeman.json'], ensure_ignore_notes: false) content = File.read('tmp/brakeman.json') compressed_data = ::Base64.strict_encode64(Zlib::Deflate.deflate(content, 9)) events << ['brakeman_exit_status'.upcase, ['0', { exitstatus: 0, stderr: '', output: '', compressed_data: compressed_data }]] if ENV['FSCI_REMOTE_TESTS'] == 'true' json_events = { build_id: FastCI.configuration.orig_build_id, compressed_data: Base64.strict_encode64(Zlib::Deflate.deflate(JSON.fast_generate(events), 9)), } FastCI.send_events(json_events) else FastCI.report_brakeman(compressed_data, 'passed') end end end end
Version data entries
8 entries across 8 versions & 1 rubygems