diff options
author | Wild Kat <wk@futureinquestion.net> | 2018-03-17 11:30:47 +0100 |
---|---|---|
committer | Wild Kat <wk@futureinquestion.net> | 2018-03-17 11:30:47 +0100 |
commit | f17736cabf0edda6788eff206aa12c9e35a22341 (patch) | |
tree | 113fa19d95571137018e5465e07f499cfa551bd1 /lib/oxidized/hook/githubrepo.rb | |
parent | 81fc3a4b423d8ce9fe69def57007312a96db6f67 (diff) | |
parent | 7ecd5abe1cc2f2bbc6b29687352564cb7f087a5a (diff) |
refactor supermicro support
Diffstat (limited to 'lib/oxidized/hook/githubrepo.rb')
-rw-r--r-- | lib/oxidized/hook/githubrepo.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/hook/githubrepo.rb b/lib/oxidized/hook/githubrepo.rb index d33e54e..f74b22a 100644 --- a/lib/oxidized/hook/githubrepo.rb +++ b/lib/oxidized/hook/githubrepo.rb @@ -51,7 +51,7 @@ class GithubRepo < Oxidized::Hook else if cfg.has_key?('publickey') && cfg.has_key?('privatekey') log "Using ssh auth with key", :debug - Rugged::Credentials::SshKey.new(username: 'git', publickey: File.expand_path(cfg.publickey), privatekey: File.expand_path(cfg.privatekey)) + Rugged::Credentials::SshKey.new(username: 'git', publickey: File.expand_path(cfg.publickey), privatekey: File.expand_path(cfg.privatekey), passphrase: ENV["OXIDIZED_SSH_PASSPHRASE"]) else log "Using ssh auth with agentforwarding", :debug Rugged::Credentials::SshKeyFromAgent.new(username: 'git') |