Giter VIP home page Giter VIP logo

github_app_boilerplate's Introduction

GitHub App Boilerplate

A starter webservice for building a GitHub App using gidgethub (v4.1.0+), aiohttp, and deployment to Heroku.

Heroku Setup

Deploy

Add the following config vars in Heroku.

GH_SECRET: The secret key from your GitHub App

GH_APP_ID: The ID of your GitHub App

GH_PRIVATE_KEY: The private key of your GitHub App. It looks like:

-----BEGIN RSA PRIVATE KEY-----
...somereallylongtext...
-----END RSA PRIVATE KEY-----

github_app_boilerplate's People

Contributors

mariatta avatar mnthomson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

github_app_boilerplate's Issues

[Question] `signature is missing ` occured

Hi, Thanks for maintaining this awesome repository.
I've been following your tutorial and now I've stucked after installing my github app to some repository, I encountered errors.

Here is the Heroku logs when I installed my Github App or Open pull request:
(The event triggered well but ValidationFailure occured)

2021-11-11T07:17:13.102277+00:00 app[web.1]: ======== Running on http://0.0.0.0:23512 ========
2021-11-11T07:17:13.102293+00:00 app[web.1]: (Press CTRL+C to quit)
2021-11-11T07:17:16.000000+00:00 app[api]: Build succeeded
2021-11-11T07:17:26.768972+00:00 heroku[router]: at=info method=POST path="/webhook" host=sample-github-app.herokuapp.com request_id=eba0b3a2-4584-4f65-aa41-7d8134084e0e fwd="140.82.115.117" dyno=web.1 connect=0ms service=3ms status=500 bytes=187 protocol=https
2021-11-11T07:17:26.767435+00:00 app[web.1]: Traceback (most recent call last):
2021-11-11T07:17:26.767446+00:00 app[web.1]: File "/app/webservice/__main__.py", line 30, in webhook
2021-11-11T07:17:26.767447+00:00 app[web.1]: event = sansio.Event.from_http(request.headers, body, secret=secret)
2021-11-11T07:17:26.767448+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gidgethub/sansio.py", line 122, in from_http
2021-11-11T07:17:26.767448+00:00 app[web.1]: raise ValidationFailure("signature is missing")
2021-11-11T07:17:26.767476+00:00 app[web.1]: gidgethub.ValidationFailure: signature is missing

Also, my github app's src code is as follows: https://github.com/anencore94/github_app_boilerplate

Could you find anything weird on my settings?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.