Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Add explicit reference to the base class JWT for encoding the private…
Browse files Browse the repository at this point in the history
… key
  • Loading branch information
poloka committed Oct 15, 2021
1 parent 8b13343 commit 662997d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/github_bot/github/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

require 'octokit'
require 'uri'
require 'jwt'
require_relative 'payload'

module GithubBot
Expand Down Expand Up @@ -180,7 +181,7 @@ def private_key
exp: current + (10 * 60),
iss: ENV['GITHUB_APP_IDENTIFIER']
}
JWT.encode(payload, private_key, 'RS256')
::JWT.encode(payload, private_key, 'RS256')
end

# relay messages to Octokit::Client if responds to allow extension
Expand Down
2 changes: 1 addition & 1 deletion lib/github_bot/version.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module GithubBot
VERSION = '0.2.0'
VERSION = '0.2.1'

# version module
module Version
Expand Down

0 comments on commit 662997d

Please sign in to comment.