Jenkins Error : Access Issue |

Hi ,

I am geeting below issue :

*ERROR: Error fetching remote repo 'origin'*
*hudson.plugins.git.GitException: Failed to fetch from'*
*	at hudson.plugins.git.GitSCM.fetchFrom(*
*	at hudson.plugins.git.GitSCM.retrieveChanges(*
*	at hudson.plugins.git.GitSCM.checkout(*
*	at hudson.scm.SCM.checkout(*
*	at hudson.model.AbstractProject.checkout(*
*	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(*
*	at jenkins.scm.SCMCheckoutStrategy.checkout(*
*	at hudson.model.AbstractBuild$*
*	at hudson.model.Run.execute(*
*	at*
*	at hudson.model.ResourceController.execute(*
*	at*
*Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress' +refs/heads/*:refs/remotes/origin/*" returned status code 128:*
*stdout: *
*stderr: fatal: unable to access '': The requested URL returned error: 403*

*	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(*
*	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(*
*	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(*
*	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(*
*	at hudson.plugins.git.GitSCM.fetchFrom(*
*	... 11 more*
*ERROR: Error fetching remote repo 'origin'*
*[GitHub Checks] Causes for no suitable publisher found: *
*[GitHub Checks] Trying to resolve checks parameters from GitHub SCM...*
*[GitHub Checks] Job does not use GitHub SCM*
*[GitHub Checks] Trying to resolve checks parameters from Git SCM...*
*[GitHub Checks] No GitHub app credentials found: 'Fortify_creds'*
*[GitHub Checks] See:*
*[GitHub Checks] Job does not have valid credentials*
*[Checks API] No suitable checks publisher found.*
*Finished: FAILURE*

I have tried manual authentication to github repo >> Successfull
No plugin errors in Jenkins

Below Error under Git >> Repositories :Failed to connect to repository : Command “git ls-remote -h HEAD” returned status code 128:
stderr: fatal: unable to access ‘’: The requested URL returned error: 403

@Adityabhuj Does the repo exist?

As per the error logs, it appears that this repo deosn’t exist or jenkins user doesn’t have sufficient permission to clone the repo.
Please see the error status code: 128

Hi Altif ,

Please note i have changed repo url , for security reasons ,
and i have checked manually , user to have access to repo

The error code 403 indicates an access-related issue. Let’s troubleshoot this step by step:

Repository Access: First, ensure that the repository you’re trying to clone is accessible. If it’s a private repository, make sure you’ve added the necessary credentials in Jenkins.
Authentication Method: How are you authenticating with GitHub? There are two common methods:
Personal Access Token (PAT): If you’re using a personal access token, ensure that it has the necessary permissions (e.g., read access to the repository).
GitHub App: If you’re using GitHub App-based authentication, verify that the app credentials are correctly configured in Jenkins.

Hi Altif ,

this github repos are used to scan in Fortify and SNYK ,
github repos are working fine in SNYK but getting issues with fortify only .
Since same personal token is used for both .