title: Unable to access github repo from Jenkins?
body: <p>I did setup </p>
  
  <p>1) Github Oauth in Configure Global Security where I had to specify clientID, secret and so on..</p>
  
  <p>2) I also added public key of jenkins machine to my github account</p>
  
  <p>3) I go to blueocean and try to create pipeline so it asks me for personal access token so I do that and successfully create a pipeline.</p>
  
  <p><strong>Now I run a simple Job but it fails because it is unable to connect to the repo. not sure why?</strong> </p>
  
  <pre><code>&gt; git rev-parse --is-inside-work-tree # timeout=10
  Fetching changes from the remote Git repository
   &gt; git config remote.origin.url https://github.com/helloinc/test-repo.git # timeout=10
  Fetching without tags
  Fetching upstream changes from https://github.com/helloinc/test-repo.git
   &gt; git --version # timeout=10
  using GIT_ASKPASS to set credentials GitHub Access Token
   &gt; git fetch --no-tags --progress https://github.com/helloinc/test-repo.git +refs/heads/jenkins-test:refs/remotes/origin/jenkins-test
  ERROR: Error fetching remote repo 'origin'
  hudson.plugins.git.GitException: Failed to fetch from https://github.com/helloinc/test-repo.git
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:817)
      at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1084)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1115)
      at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:113)
      at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:85)
      at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:75)
      at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
      at hudson.security.ACL.impersonate(ACL.java:260)
      at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
  Caused by: hudson.plugins.git.GitException: Command "git fetch --no-tags --progress https://github.com/helloinc/test-repo.git +refs/heads/jenkins-test:refs/remotes/origin/jenkins-test" returned status code 128:
  stdout: 
  stderr: error: The requested URL returned error: 403 Forbidden while accessing https://github.com/helloinc/test-repo.git/info/refs
  
  fatal: HTTP request failed
  </code></pre>