# Cant't connect GitHub repository

**URL:** <https://forum.ansible.com/t/cantt-connect-github-repository/36291>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [February 4, 2022, 9:06am UTC](https://forum.ansible.com/t/cantt-connect-github-repository/36291 "2022-02-04T09:06:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zuo\_tian](https://avatars.discourse-cdn.com/v4/letter/z/da6949/32.png) [@zuo\_tian](https://forum.ansible.com/u/zuo_tian)\
**Post date:** [February 4, 2022, 9:06am UTC](https://forum.ansible.com/t/cantt-connect-github-repository/36291/1 "2022-02-04T09:06:33Z")

</div>

I installed AWX via AWX Operator. Versions:

1. AWX: 19.5.0
2. AWX Operator: 0.15.0  
After create a GitHub Personal Access Token and set it to AWX credential

 ![0.png](https://us1.discourse-cdn.com/ansible/original/2X/e/e49e0dea1f94f87d77220e43e830fe4a701c48cb.png) ![1.png](https://us1.discourse-cdn.com/ansible/original/2X/0/0761ebcd094a2489c892818694a63911f5168640.png)

On the project setting page, I can’t find the credential created above

 ![2.png](https://us1.discourse-cdn.com/ansible/original/2X/8/8df4ccc5a29b1375a66077bf41509a05cc7a9647.png) ![3.png](https://us1.discourse-cdn.com/ansible/original/2X/7/7809ce4b2200ed576ca59f4c6151ff1ca8961b6f.png)

On the template setting page, from the credential dropdown list, I can’t find the GitHub Personal Access Token, too.

 ![4.png](https://us1.discourse-cdn.com/ansible/original/2X/a/a8bff0bcabe5aff7da538fc4ae3428d8cdbac60d.jpeg)  
If create a GitHub SSH Credential from Source Control type, it can be listed in the Select Source Control Credential of project setting page  
 ![5.png](https://us1.discourse-cdn.com/ansible/original/2X/8/83b9672ec1c703b4acd1188d74b802489a6b9b40.png) ![6.png](https://us1.discourse-cdn.com/ansible/original/2X/1/189129c60513ebd205dd68fde0dc1f4e87cbe7cb.png)

But when sync source in GitHub got this error:  
**fatal: unable to access ‘[https://github.com/my-org/awesome.git/](https://github.com/my-org/awesome.git/)’: OpenSSL SSL\_connect: SSL\_ERROR\_SYSCALL in connection to [github.com:443](http://github.com:443)**

If use the SCM Private Key on localhost to access GitHub repo, it works. But not work in AWX.

Refs:  
[22.1. GitHub webhook setup](https://docs.ansible.com/ansible-tower/latest/html/userguide/webhooks.html#github-webhook-setup)  
[Connecting Ansible Tower and Github](https://murrahjm.github.io/Source-Control-and-the-Tower-Project/)

---

<div class="post-metadata">

**Author:** ![ffirg](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ffirg/32/10029_2.png) [@ffirg](https://forum.ansible.com/u/ffirg)\
**Post date:** [February 9, 2022, 10:28pm UTC](https://forum.ansible.com/t/cantt-connect-github-repository/36291/2 "2022-02-09T22:28:41Z")

</div>

the git PAT credential types are there only currently to support webhooks.  
You need to use source control as the credential type as you’ve found.  
But please try putting your PAT in the password field not private key.
