{"id":20366855,"url":"https://github.com/distantcam/openfaas-githubapp-example","last_synced_at":"2025-07-24T07:04:26.255Z","repository":{"id":143492218,"uuid":"162674325","full_name":"distantcam/openfaas-githubapp-example","owner":"distantcam","description":null,"archived":false,"fork":false,"pushed_at":"2018-12-21T06:46:35.000Z","size":7,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T19:37:42.835Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/distantcam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-21T06:19:25.000Z","updated_at":"2021-07-08T12:55:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"ce75c49b-b872-447e-81e1-c6d7b45c1887","html_url":"https://github.com/distantcam/openfaas-githubapp-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/distantcam/openfaas-githubapp-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distantcam%2Fopenfaas-githubapp-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distantcam%2Fopenfaas-githubapp-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distantcam%2Fopenfaas-githubapp-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distantcam%2Fopenfaas-githubapp-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/distantcam","download_url":"https://codeload.github.com/distantcam/openfaas-githubapp-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distantcam%2Fopenfaas-githubapp-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266807073,"owners_count":23987424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T00:27:29.578Z","updated_at":"2025-07-24T07:04:26.217Z","avatar_url":"https://github.com/distantcam.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenFaaS GitHub App Example\n\nA sample OpenFaaS function that acts as a GitHub App written in .NET Core.\n\nThe boilerplate code for this example is based on [GitHubCoreReceiver](https://github.com/aspnet/AspLabs/tree/master/src/WebHooks/samples/GitHubCoreReceiver) with JWT token authentication based on [Working with GitHub Apps](https://octokitnet.readthedocs.io/en/latest/github-apps/) in the Octokit.net documentation.\n\n## Installation\n\n[OpenFaaS](https://www.openfaas.com/) and [faas-cli](https://docs.openfaas.com/cli/install/) need to be installed first.\n\n- Spin up an ngrok forwarder using the following.\n\n```\ndocker run -p 4040:4040 -d --rm --name=ngrok --net=func_functions alexellis2/ngrok-admin http gateway:8080\n```\n\n- Go to http://127.0.0.1:4040/ and copy the ngrok address.\n\n- [Register a GitHub App](https://developer.github.com/apps/building-your-first-github-app/#register-a-new-app-with-github). The sample requires Read \u0026 Write access for Issues and a subscription to Issues events. When testing the ngrok URL (like https://abcdef.ngrok.io/function/github) should be used for the URL fields.\n\n- Download the private key and you also need the Application ID.\n\n- Copy `env.example.yml` to `env.yml` and fill in the values. The Webhook secret needs to be at least 16 characters.\n\n```yaml\nenvironment:\n  GH_SecretKey: 0123456789012345\n  GH_ApplicationId: 12345\n  GH_PrivateKey: \"abcdef\\nghijkl\"\n```\n\n- Pull down the OpenFaaS template for this function\n\n```\nfaas-cli template pull https://github.com/distantcam/csharp-webrequest-template\n```\n\n- Build and Deploy the project to OpenFaas\n\n```\nfaas-cli build \u0026\u0026 faas-cli deploy\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistantcam%2Fopenfaas-githubapp-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdistantcam%2Fopenfaas-githubapp-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistantcam%2Fopenfaas-githubapp-example/lists"}