Additional check for access key if PR from fork

[ci skip]
pull/5832/head
Oliver Günther 7 years ago
parent 67fc1f1a18
commit d1d5d56620
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 2
      spec/support/capybara.rb

@ -15,7 +15,7 @@ end
Capybara::Screenshot.prune_strategy = :keep_last_run Capybara::Screenshot.prune_strategy = :keep_last_run
# Set up S3 uploads if desired # Set up S3 uploads if desired
if ENV['OPENPROJECT_ENABLE_CAPYBARA_SCREENSHOT_S3_UPLOADS'] if ENV['OPENPROJECT_ENABLE_CAPYBARA_SCREENSHOT_S3_UPLOADS'] && ENV['AWS_ACCESS_KEY_ID']
Capybara::Screenshot.s3_configuration = { Capybara::Screenshot.s3_configuration = {
s3_client_credentials: { s3_client_credentials: {
access_key_id: ENV.fetch('AWS_ACCESS_KEY_ID'), access_key_id: ENV.fetch('AWS_ACCESS_KEY_ID'),

Loading…
Cancel
Save