Use access tokens
This commit is contained in:
parent
40536d4d4d
commit
1a8691ad2f
|
@ -1,10 +1,9 @@
|
|||
#configuration of Github api gem
|
||||
|
||||
Github_blobs_api = Octokit::Client.new(login: ENV['GITHUB_REPO_BOT_LOGIN'], password: ENV['GITHUB_REPO_BOT_PASSWORD'])
|
||||
Github_blobs_api = Octokit::Client.new(access_token: ENV["GITHUB_REPO_BOT_ACCESS_TOKEN"])
|
||||
|
||||
Octokit.configure do |c|
|
||||
c.login = ENV["GITHUB_LOGIN"]
|
||||
c.password = ENV["GITHUB_PASSWORD"]
|
||||
c.access_token = ENV["GITHUB_ACCESS_TOKEN"]
|
||||
end
|
||||
Octokit.middleware = Faraday::RackBuilder.new do |builder|
|
||||
store = ActiveSupport::Cache.lookup_store(:redis_store, ENV['REDIS_URL'].to_s + '/1')
|
||||
|
|
Loading…
Reference in New Issue