
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@probot/adapter-google-cloud-functions
Advanced tools
An extension for running Probot in Google Cloud Functions
A Probot extension to make it easier to run your Probot Apps in Google Cloud Functions.
$ npm install @probot/serverless-gcf
// handler.js
const { serverless } = require('@probot/serverless-gcf');
const appFn = require('./')
module.exports.probot = serverless(appFn)
This package moves the functionality of probot run
into a handler suitable for usage on Google Cloud Functions. Follow the documentation on Environment Configuration to setup your app's environment variables. You can add these to .env
, but for security reasons you may want to use the gcloud cli or Serverless Framework to set Environment Variables for the function so you don't have to include any secrets in the deployed package.
probot run
Since GCF functions do not start a normal node process, the best way we've found to test this out locally is to use serverless-offline
. This plugin for the serverless framework emulates AWS Lambda and API Gateway on your local machine, allowing you to continue working from https://localhost:3000/probot
before deploying your function.
Some Probot Apps that depend on long running processes or intervals will not work with this extension. This is due to the inherent architecture of serverless functions, which are designed to respond to events and stop running as quickly as possible. For longer running apps we recommend using other deployment options.
This extension is designed primarily for receiving webhooks from GitHub and responding back as a GitHub App. If you are using HTTP Routes in your app to serve additional pages, you should take a look at serverless-http
, which can be used with Probot's express server by wrapping probot.server
.
FAQs
An extension for running Probot in Google Cloud Functions
We found that @probot/adapter-google-cloud-functions demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.