VCR to censor ENV['CHANGELOG_GITHUB_TOKEN']

This commit is contained in:
Olle Jonsson 2016-07-02 21:48:08 +02:00
parent d837f25beb
commit 88bcb872a6
13 changed files with 16 additions and 12 deletions

View File

@ -48,6 +48,10 @@ VCR.configure do |c|
preserve_exact_body_bytes: true,
decode_compressed_response: true
}
c.filter_sensitive_data('<GITHUB_TOKEN>') {
"token #{ENV.fetch('CHANGELOG_GITHUB_TOKEN')}"
}
c.configure_rspec_metadata!
c.hook_into :webmock, :faraday