This repository was archived by the owner on Jun 8, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class GHAapp < Sinatra::Application
16
16
# environment variable in PEM format.
17
17
PRIVATE_KEY = OpenSSL ::PKey ::RSA . new ( ENV [ 'GITHUB_PRIVATE_KEY' ] . gsub ( '\n' , "\n " ) )
18
18
19
- # Your registered app must set have a secret set. The secret is used to verify
19
+ # Your registered app must have a secret set. The secret is used to verify
20
20
# that webhooks are sent by GitHub.
21
21
WEBHOOK_SECRET = ENV [ 'GITHUB_WEBHOOK_SECRET' ]
22
22
@@ -32,7 +32,7 @@ class GHAapp < Sinatra::Application
32
32
# Executed before each request to the `/event_handler` route
33
33
before '/event_handler' do
34
34
get_payload_request ( request )
35
- verify_webhook_signature!
35
+ verify_webhook_signature
36
36
authenticate_app
37
37
# Authenticate the app installation in order to run API operations
38
38
authenticate_installation ( @payload )
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class GHAapp < Sinatra::Application
49
49
# Before each request to the `/event_handler` route
50
50
before '/event_handler' do
51
51
get_payload_request ( request )
52
- verify_webhook_signature!
52
+ verify_webhook_signature
53
53
authenticate_app
54
54
# Authenticate the app installation in order to run API operations
55
55
authenticate_installation ( @payload )
You can’t perform that action at this time.
0 commit comments