Questions tagged [github-webhook]

Use for the webhook settings in github

Webhooks allow triggers to be set off by github, or for github to respond to.

Learn more here.

98 questions
82
votes
3 answers

Trigger a GitHub Action when another repository creates a new release

I'm trying to build a GitHub workflow that will be triggered when another repository creates a new release. In the documentation, there is the paragraph: on.event_name.types where event_name will be release. The question is: Is there any way to…
pierDipi
  • 1,388
  • 1
  • 11
  • 20
15
votes
1 answer

How to use an API webhook in React to receive notifictions

This is my first time working with Webhooks and I was wondering if it was possible to receive notifcations from a Webhooks subscription. I'm using create-react-app for my project and want to use github's Webhooks subscription to send an alert…
Michael Lee
  • 327
  • 2
  • 5
  • 18
12
votes
4 answers

Jenkins simple pipeline not triggered by github push

I have created a jenkins pipeline job called "pipelinejob" with the below script: pipeline { agent any stages { stage ('Setup'){ steps{ //echo "${BRANCH_NAME}" echo…
Dim Malt
  • 121
  • 1
  • 1
  • 4
12
votes
1 answer

AWS CloudFormation CodePipeline: Could not fetch the contents of the repository from GitHub

I'm attempting to setup an AWS CloudFormation configuration using CodePipeline and GitHub. I've failed both at my own example project and the tutorial: Create a GitHub Pipeline with AWS CloudFormation. All resources are created, but in CodePipeline…
shmck
  • 5,129
  • 4
  • 17
  • 29
10
votes
1 answer

AWS Codepipeline Github Webhook not being registered through cloudformation

I am trying to set AWS codepipeline and use github as the source by using cloudformation. The github repository is owned by an organization and I have admin access to it. I was able to create webhook and successfully create entire service through…
7
votes
1 answer

Google Cloud Function finished with status: 'connection error'

I've got an HTTP Cloud Function (Python 3.7) invoked by a Github webhook, and it usually (but not always) exits with a connection error when the event type is not a pull request. It always exits cleanly when it doesn't go inside the if block. Here's…
6
votes
2 answers

GitHub webhook can't connect to Jenkins inside VPN?

I am setting up continuous integration using Jenkins and GitHub Enterprise. So far I have been able to easily create Jenkins projects and run jobs regularly. Jenkins is using SSH public/private keys to authenticate and clone GitHub repos. Jenkins…
Danijel
  • 8,198
  • 18
  • 69
  • 133
6
votes
2 answers

Github Webhooks secret with AWS API Gateway

I am trying to have a Github Webhook launch an AWS Lambda I have. The best way I can figure out how to do that is to use AWS API Gateway, the issue is security. Github Webhooks will only send a secret with the POST call. I can't find any way to…
Kyle Calica-St
  • 2,629
  • 4
  • 26
  • 56
5
votes
0 answers

How to trigger a WebHook when a Public Github repo that I do not own gets a new commit?

Is it possible to trigger a webhook whenever a public Github repo gets a new commit. I tried seeing on Zapier and other automation tools, but all of them require me to be an owner of that repo.
5
votes
0 answers

How do you get Github Webhook payload data in a Jenkins declarative pipeline?

I have a Jenkins declarative pipeline that is triggered using Github webhooks. The Jenkins job can be triggered either on a pull request or a merge. I want 2 of the 3 steps (Build and Test) to be run every time -- both a on a merge and a PR. I want…
5
votes
2 answers

How can I validate payloads from GitHub webhooks in Python 3?

I've realized auto-deploying of my Flask app on the server by Github webhooks, but I cannot adapt Ruby script specified in the manual to Python 3 to validate the POST-request. I've tried this: from flask import Flask, request from hmac import HMAC,…
Praetorian
  • 99
  • 1
  • 7
4
votes
1 answer

Jenkins github webhook integration not working?

Using Jenkins v2.401.2 Am using Github jenkins plugin (comes with Jenkins) to manually configure a webhook and have it run on every action thus triggering my Jenkins job. Getting: POST /github-webhook/ 200 OK when an action is triggered on Github,…
EugenSunic
  • 13,162
  • 13
  • 64
  • 86
4
votes
0 answers

GitHub Action: Provide webhook callback URL custom and wait for completion

I am looking for a method to generate a custom webhook callback URL unique to each build within my github action. The purpose of this is that I have a github action which simply starts a test on a server (i.e. browserstack)and returns. It has the…
user1936582
4
votes
0 answers

How can I configure Jenkins to run declarative Jenkinsfiles on GitHub Pull Request (PR) Close or Merge?

In a recent build of Jenkins (i.e., 2021-10-01 timeframe), how can I react to a GitHub pull request (PR) Close (or Merge) using declarative Jenkinsfiles and ONLY these "basic" Jenkins plugins? GitHub plugin GitHub branch source plugin It seems…
mellow-yellow
  • 1,670
  • 1
  • 18
  • 38
4
votes
1 answer

CodeBuild projects are not being queued when conccurent build is 1

We are using AWS CodeBuild along with GitHub webhooks to trigger a build process. When a PR is created for a branch that starts with a Jira ticket prefix, i.e oscs-278, we build a new environment with Terraform. When we make commits to the PR it…
Nathan Sainsbury
  • 383
  • 3
  • 12
1
2 3 4 5 6 7