Skip to content

Commit

Permalink
Merge pull request #5 from jill64/dev
Browse files Browse the repository at this point in the history
minor: Change Internal Env Key
  • Loading branch information
ghost-merge[bot] committed Oct 6, 2023
2 parents dd895db + 839960b commit c6a354c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "octoflare",
"version": "0.0.0",
"version": "0.1.0",
"description": "A framework for building GitHub Apps with Cloudflare Worker",
"type": "module",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/octoflare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const octoflare = <Env extends InternalEnv>(

const app = new App({
appId: env.OCTOFLARE_APP_ID,
privateKey: env.OCTOFLARE_APP_PRIVATE_KEY_PKCS8
privateKey: env.OCTOFLARE_PRIVATE_KEY_PKCS8
})

try {
Expand Down
4 changes: 2 additions & 2 deletions src/types/InternalEnv.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type InternalEnv = {
OCTOFLARE_APP_ID: string
OCTOFLARE_APP_PRIVATE_KEY_PKCS8: string
OCTOFLARE_APP_WEBHOOK_SECRET: string
OCTOFLARE_PRIVATE_KEY_PKCS8: string
OCTOFLARE_WEBHOOK_SECRET: string
}
2 changes: 1 addition & 1 deletion src/verifyRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const verifyRequest = ({
}

const signature = crypto
.createHmac('sha256', env.OCTOFLARE_APP_WEBHOOK_SECRET)
.createHmac('sha256', env.OCTOFLARE_WEBHOOK_SECRET)
.update(body)
.digest('hex')

Expand Down

0 comments on commit c6a354c

Please sign in to comment.