-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide GitHub Authentication variables programatically #54
Comments
Yes! The latest Probot ships with new APIs that should make it easier to use in serverless/function environments. This is how the APIs look like: https://probot.github.io/docs/serverless-deployment/#deploy-the-app What that work for you? The timing of your question is great! I'm looking for someone to help create an example repository for an AWS Lambda deployment, similar to https://github.com/probot/example-google-cloud-function. Would you like to help with that? I wonder what the most minimal setup would be to (continuously) deploy a Probot app function to AWS Lambda. I wonder if we need the serverless framework or if there is a simpler way without the extra tooling?
|
It will be possible via #59 using environment variables: const { createLambdaFunction, createProbot } = require("@probot/adapter-aws-lambda-serverless");
const appFn = require("./");
module.exports.webhooks = createLambdaFunction(appFn, { probot: createProbot() }); programmatic const { createLambdaFunction, Probot } = require("@probot/adapter-aws-lambda-serverless");
const appFn = require("./");
module.exports.webhooks = createLambdaFunction(appFn, {
probot: new Probot({
// pass whatever options you like
appId,
privateKey,
secret,
})
}); |
🎉 This issue has been resolved in version 2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Is there any plan to support providing GitHub credential information (
APP_ID
,WEBHOOK_SECRET
,PRIVATE_KEY
) without environment variables?For example, something like:
Thanks!
The text was updated successfully, but these errors were encountered: