Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
octoflare
Advanced tools
A framework for building GitHub Apps with Cloudflare Worker
npm i octoflare
// 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
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 |
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
FAQs
🌤️ A framework for building GitHub Apps with Cloudflare Worker
The npm package octoflare receives a total of 153 weekly downloads. As such, octoflare popularity was classified as not popular.
We found that octoflare demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.