title: AWS CodePipeline github webhook not triggering on commit
body: <p>I set up an AWS CodePipeline that uses github as a source, CodeBuild for build, and deploys to ElasticBeanstalk.</p>
  
  <p>I was able to get it working when everything was set up in the console and I was an admin of the github account (I used a different account for testing)</p>
  
  <p>The actual code I need to deploy belongs to an account where I am not an admin so following <a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/GitHub-create-personal-token-CLI.html" rel="nofollow noreferrer">this guide</a> I received a Personal Access Token and updated the CodePipeline using the CLI.</p>
  
  <p>Once i updated the project using the cli, it no longer gets triggered when the code is committed.</p>
  
  <p>I'm not sure what changed, because it still doesn't work even when I use the console and set up the webhook directly as an admin of the github account I was testing with.</p>
  
  <p>This is the json I updated the pipeline with:</p>
  
  <pre><code>{
      "pipeline": {
          "roleArn": "arn:aws:iam::xxxxxxx:role/service-role/AWSCodePipelineServiceRole-us-west-2-xxxxx-xxxx", 
          "stages": [
              {
                  "name": "Source", 
                  "actions": [
                      {
                          "inputArtifacts": [], 
                          "name": "Source", 
                          "actionTypeId": {
                              "category": "Source", 
                              "owner": "ThirdParty", 
                              "version": "1", 
                              "provider": "GitHub"
                          }, 
                          "outputArtifacts": [
                              {
                                  "name": "SourceArtifact"
                              }
                          ], 
                          "configuration": {
                              "Owner": "xxx", 
                              "Repo": "xxx", 
                              "PollForSourceChanges": "false", 
                              "Branch": "stage"
                          }, 
                          "runOrder": 1
                      }
                  ]
              }, 
              {
                  "name": "Build", 
                  "actions": [
                      {
                          "inputArtifacts": [
                              {
                                  "name": "SourceArtifact"
                              }
                          ], 
                          "name": "Build", 
                          "actionTypeId": {
                              "category": "Build", 
                              "owner": "AWS", 
                              "version": "1", 
                              "provider": "CodeBuild"
                          }, 
                          "outputArtifacts": [
                              {
                                  "name": "BuildArtifact"
                              }
                          ], 
                          "configuration": {
                              "ProjectName": "xxx-stage-codebuild"
                          }, 
                          "runOrder": 1
                      }
                  ]
              }, 
              {
                  "name": "Deploy", 
                  "actions": [
                      {
                          "inputArtifacts": [
                              {
                                  "name": "BuildArtifact"
                              }
                          ], 
                          "name": "Deploy", 
                          "actionTypeId": {
                              "category": "Deploy", 
                              "owner": "AWS", 
                              "version": "1", 
                              "provider": "ElasticBeanstalk"
                          }, 
                          "outputArtifacts": [], 
                          "configuration": {
                              "ApplicationName": "xxx", 
                              "EnvironmentName": "xxx-stage"
                          }, 
                          "runOrder": 1
                      }
                  ]
              }
          ], 
          "artifactStore": {
              "type": "S3", 
              "location": "xxx-artifacts-stage"
          }, 
          "name": "xxx-stage", 
          "version": 15
      }
  }
  </code></pre>