Skip to content

Commit

Permalink
Merge pull request #6 from jill64/jill64-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
ghost-merge[bot] committed Oct 6, 2023
2 parents c6a354c + 522777f commit b5f3b6d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,25 @@ name = "YOUR_APP_NAME"
main = "src/index.js"
compatibility_date = "YYYY-MM-DD"
compatibility_flags = ["nodejs_compat"]

# ... Other Configs

```

The following must be set as environment variables for Cloudflare Workers

| Key | Value |
| --------------------------- | ------------------------------------------------ |
| OCTOFLARE_APP_ID | GitHub App ID |
| OCTOFLARE_PRIVATE_KEY_PKCS8 | GitHub App private key converted to PKCS8 format |
| OCTOFLARE_WEBHOOK_SECRET | GitHub App Webhook Secret |

[Type Definition](./src/types/OctoflareHandler.ts)

## Convert Privatekey

Before using the private key provided by GitHub, you need to convert it to PKCS8 format with the command below.

```sh
openssl pkcs8 -topk8 -inform PEM -outform PEM -nocrypt -in private-key.pem -out private-key-pkcs8.key
```

0 comments on commit b5f3b6d

Please sign in to comment.