lib/shipit/github_app.rb in shipit-engine-0.38.0 vs lib/shipit/github_app.rb in shipit-engine-0.39.0
- old
+ new
@@ -101,10 +101,9 @@
expires_in: GITHUB_TOKEN_RAILS_CACHE_LIFETIME,
race_condition_ttl: 4.minutes,
) do
response = new_client(bearer_token: authentication_payload).create_app_installation_access_token(
installation_id,
- accept: 'application/vnd.github.machine-man-preview+json',
)
token = Token.from_github(response)
raise AuthenticationFailed if token.blank?
Rails.logger.info("Created GitHub access token ending #{token.to_s[-5..-1]}, expires at #{token.expires_at}"\
" and will be refreshed at #{token&.refresh_at}")