# Jenkins can't access GitHub repo

**URL:** <https://community.jenkins.io/t/jenkins-cant-access-github-repo/21941>\
**Category:** Using Jenkins\
**Created:** [October 16, 2024, 9:38am UTC](https://community.jenkins.io/t/jenkins-cant-access-github-repo/21941 "2024-10-16T09:38:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vtndenis](https://avatars.discourse-cdn.com/v4/letter/v/57b2e6/32.png) [@vtndenis](https://community.jenkins.io/u/vtndenis)\
**Post date:** [October 16, 2024, 9:38am UTC](https://community.jenkins.io/t/jenkins-cant-access-github-repo/21941/1 "2024-10-16T09:38:09Z")

</div>

Jenkins setup:

## Jenkins: 2.462.2 OS: Windows 10 - 10.0 Java: 17.0.11 - Oracle Corporation (Java HotSpot™ 64-Bit Server VM)

active-directory:2.36  
analysis-model-api:12.5.0  
ant:511.v0a\_a\_1a\_334f41b\_  
antisamy-markup-formatter:162.v0e6ec0fcfcf6  
apache-httpcomponents-client-4-api:4.5.14-208.v438351942757  
apache-httpcomponents-client-5-api:5.3.1-117.v4d95117cd34f  
asm-api:9.7-33.v4d23ef79fcc8  
bitbucket:254.v9d8ec33a\_7a\_42  
bootstrap5-api:5.3.3-1  
bouncycastle-api:2.30.1.78.1-248.ve27176eb\_46cb\_  
branch-api:2.1178.v969d9eb\_c728e  
build-name-setter:2.4.3  
build-timeout:1.33  
caffeine-api:3.1.8-133.v17b\_1ff2e0599  
checks-api:2.2.1  
clearcase:1.6.8  
cloudbees-folder:6.951.v5f91d88d76b\_b\_  
command-launcher:115.vd8b\_301cc15d0  
commons-lang3-api:3.17.0-84.vb\_b\_938040b\_078  
commons-text-api:1.12.0-129.v99a\_50df237f7  
conditional-buildstep:1.4.3  
config-file-provider:978.v8e85886ffdc4  
configuration-as-code:1850.va\_a\_8c31d3158b\_  
copyartifact:749.vfb\_dca\_a\_9b\_6549  
coverage:1.16.1  
credentials:1380.va\_435002fa\_924  
credentials-binding:681.vf91669a\_32e45  
cvs:2.19.1  
dark-theme:479.v661b\_1b\_911c01  
dashboard-view:2.517.v776a\_b\_811a\_b\_4e  
data-tables-api:2.1.6-1  
display-url-api:2.204.vf6fddd8a\_8b\_e9  
dtkit-api:3.0.2  
durable-task:577.v2a\_8a\_4b\_7c0247  
echarts-api:5.5.1-1  
eddsa-api:0.3.0-4.v84c6f0f4969e  
email-ext:1814.v404722f34263  
emailext-template:1.5  
embeddable-build-status:487.va\_0ef04c898a\_2  
font-awesome-api:6.6.0-2  
forensics-api:2.6.0  
git:5.5.0  
git-client:5.0.0  
git-parameter:0.9.19  
github:1.40.0  
github-api:1.321-468.v6a\_9f5f2d5a\_7e  
github-branch-source:1797.v86fdb\_4d57d43  
gitlab-plugin:1.8.1  
gradle:2.13  
gson-api:2.11.0-41.v019fcf6125dc  
htmlpublisher:1.36  
instance-identity:185.v303dc7c645f9  
ionicons-api:74.v93d5eb\_813d5f  
jackson2-api:2.17.0-379.v02de8ec9f64c  
jakarta-activation-api:2.1.3-1  
jakarta-mail-api:2.1.3-1  
javax-activation-api:1.2.0-7  
javax-mail-api:1.6.2-10  
jaxb:2.3.9-1  
jdk-tool:80.v8a\_dee33ed6f0  
jersey2-api:2.44-151.v6df377fff741  
jjwt-api:0.11.5-112.ve82dfb\_224b\_a\_d  
joda-time-api:2.13.0-85.vb\_64d1c2921f1  
jquery3-api:3.7.1-2  
jsch:0.2.16-86.v42e010d9484b\_  
json-api:20240303-41.v94e11e6de726  
json-path-api:2.9.0-58.v62e3e85b\_a\_655  
junit:1300.v03d9d8a\_cf1fb\_  
ldap:725.v3cb\_b\_711b\_1a\_ef  
locale:519.v4e20f313cfa\_f  
localization-support:1.2  
localization-zh-cn:371.v23851f835d6b\_  
mailer:472.vf7c289a\_4b\_420  
mapdb-api:1.0.9-40.v58107308b\_7a\_7  
matrix-auth:3.2.2  
matrix-project:832.va\_66e270d2946  
mercurial:1260.vdfb\_723cdcc81  
metrics:4.2.21-451.vd51df8df52ec  
mina-sshd-api-common:2.13.2-125.v200281b\_61d59  
mina-sshd-api-core:2.13.2-125.v200281b\_61d59  
msbuild:1.34  
nodejs:1.6.2  
okhttp-api:4.11.0-172.vda\_da\_1feeb\_c6e  
p4:1.16.0  
pam-auth:1.11  
parameterized-trigger:806.vf6fff3e28c3e  
pipeline-build-step:540.vb\_e8849e1a\_b\_d8  
pipeline-github-lib:61.v629f2cc41d83  
pipeline-graph-analysis:216.vfd8b\_ece330ca\_  
pipeline-graph-view:340.v28cecee8b\_25f  
pipeline-groovy-lib:730.ve57b\_34648c63  
pipeline-input-step:495.ve9c153f6067b\_  
pipeline-milestone-step:119.vdfdc43fc3b\_9a\_  
pipeline-model-api:2.2214.vb\_b\_34b\_2ea\_9b\_83  
pipeline-model-definition:2.2214.vb\_b\_34b\_2ea\_9b\_83  
pipeline-model-extensions:2.2214.vb\_b\_34b\_2ea\_9b\_83  
pipeline-stage-step:312.v8cd10304c27a\_  
pipeline-stage-tags-metadata:2.2214.vb\_b\_34b\_2ea\_9b\_83  
plain-credentials:183.va\_de8f1dd5a\_2b\_  
plugin-util-api:4.1.0  
prism-api:1.29.0-17  
repo:1.16.0  
resource-disposer:0.23  
role-strategy:743.v142ea\_b\_d5f1d3  
run-condition:1.7  
scm-api:696.v778d637b\_a\_762  
script-security:1362.v67dc1f0e1b\_b\_3  
snakeyaml-api:2.3-123.v13484c65210a\_  
ssh-agent:376.v8933585c69d3  
ssh-credentials:343.v884f71d78167  
ssh-slaves:2.973.v0fa\_8c0dea\_f9f  
sshd:3.330.vc866a\_8389b\_58  
structs:338.v848422169819  
subversion:1275.va\_7b\_014f3fc2c  
theme-manager:262.vc57ee4a\_eda\_5d  
throttle-concurrents:2.14  
timestamper:1.27  
token-macro:400.v35420b\_922dcb\_  
trilead-api:2.147.vb\_73cc728a\_32e  
variant:60.v7290fc0eb\_b\_cd  
warnings-ng:11.6.0  
workflow-aggregator:600.vb\_57cdd26fdd7  
workflow-api:1336.vee415d95c521  
workflow-basic-steps:1058.vcb\_fc1e3a\_21a\_9  
workflow-cps:3964.v0767b\_4b\_a\_0b\_fa\_  
workflow-durable-task-step:1371.vb\_7cec8f3b\_95e  
workflow-job:1436.vfa\_244484591f  
workflow-multibranch:795.ve0cb\_1f45ca\_9a\_  
workflow-scm-step:427.v4ca\_6512e7df1  
workflow-step-api:678.v3ee58b\_469476  
workflow-support:926.v9f4f9b\_b\_98c19  
ws-cleanup:0.46  
xunit:3.1.5

I am trying to launch a job, but by doing so, I get the following error :

```auto
Started by user admin
hudson.plugins.git.GitException: Command "git.exe fetch --tags --force --progress --prune -- origin +refs/heads/master:refs/remotes/origin/master" returned status code 128:
stdout: 
stderr: remote: Your account is suspended. Please login to reactivate your account.
fatal: unable to access '[MY GITHUB REPO]': The requested URL returned error: 403

	at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2846)
	at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2185)
	at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:635)
	at PluginClassLoader for git//jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:408)
Caused: java.io.IOException
	at PluginClassLoader for git//jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:413)
	at PluginClassLoader for scm-api//jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:219)
	at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:126)
	at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:73)
	at PluginClassLoader for workflow-job//org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:311)
	at hudson.model.ResourceController.execute(ResourceController.java:101)
	at hudson.model.Executor.run(Executor.java:446)
Finished: FAILURE

```

It seems that Jenkins is not allowed to access my repo. I can execute the exact command that the build failed on (fetch command) from my computer via the shell or github desktop, but when using Jenkins, it does not work. I tried regenarating my PAT and triple checking my credentials in Jenkins, but still nothing.

Thanks
