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
1616 # environment variable in PEM format.
1717 PRIVATE_KEY = OpenSSL ::PKey ::RSA . new ( ENV [ 'GITHUB_PRIVATE_KEY' ] . gsub ( '\n' , "\n " ) )
1818
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
2020 # that webhooks are sent by GitHub.
2121 WEBHOOK_SECRET = ENV [ 'GITHUB_WEBHOOK_SECRET' ]
2222
@@ -32,7 +32,7 @@ class GHAapp < Sinatra::Application
3232 # Executed before each request to the `/event_handler` route
3333 before '/event_handler' do
3434 get_payload_request ( request )
35- verify_webhook_signature!
35+ verify_webhook_signature
3636 authenticate_app
3737 # Authenticate the app installation in order to run API operations
3838 authenticate_installation ( @payload )
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class GHAapp < Sinatra::Application
4949 # Before each request to the `/event_handler` route
5050 before '/event_handler' do
5151 get_payload_request ( request )
52- verify_webhook_signature!
52+ verify_webhook_signature
5353 authenticate_app
5454 # Authenticate the app installation in order to run API operations
5555 authenticate_installation ( @payload )
You can’t perform that action at this time.
0 commit comments