-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitHub app scm project alt #15481
base: devel
Are you sure you want to change the base?
GitHub app scm project alt #15481
Conversation
- Add github_app_id, github_app_installation_id and github_api_url to scm credential type - Add ability to generate github app token to clone project with git for github
ed5905e
to
b58d221
Compare
FTR, I think this is not that different from the first PR in that it mistreats the concept of GitHub Apps. It works, but it's more of a PoC hack rather than full integration with the native concepts GH Apps present. |
b58d221
to
633d8ea
Compare
|
|
||
github_api_url = credential.get_input('github_api_url', default='https://api.github.com') | ||
installation_id = credential.get_input('github_app_installation_id', default='') | ||
url = f'{github_api_url}/app/installations/{installation_id}/access_tokens' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have repo yet so we need to use the installation id. We don't get the repository until the playbook runs in
awx/awx/playbooks/project_update.yml
Line 49 in 46403e4
repo: "{{ scm_url }}" |
SUMMARY
Alternative to #15472
IMPORTANT: UI change needed currently UI hard codes to namespace='scm' need to change to kind='scm'
ISSUE TYPE
COMPONENT NAME
AWX VERSION
ADDITIONAL INFORMATION