Socket
Socket
Sign inDemoInstall

octoflare

Package Overview
Dependencies
Maintainers
1
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

octoflare

A framework for building GitHub Apps with Cloudflare Worker


Version published
Weekly downloads
265
decreased by-28.95%
Maintainers
1
Weekly downloads
 
Created
Source

Octoflare

CI

A framework for building GitHub Apps with Cloudflare Worker

Installation

npm i octoflare

Example

// src/index.js
import { octoflare } from 'octoflare'

export default octoflare(({ request, env, app, payload }) => {
  // Application Code
})
# wrangler.toml
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

KeyValue
OCTOFLARE_APP_IDGitHub App ID
OCTOFLARE_PRIVATE_KEY_PKCS8GitHub App private key converted to PKCS8 format
OCTOFLARE_WEBHOOK_SECRETGitHub App Webhook Secret

Type Definition

Convert Privatekey

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

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

Keywords

FAQs

Package last updated on 07 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc