-
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
feat: 38589 GitHub App Authentication #15807
Conversation
22268c5
to
3eaa0a2
Compare
007ed10
to
a3e33c5
Compare
* point git requirements to feature branch for testing purposes * revert this once the awx-plugins PR merges
75be01c
to
df6da38
Compare
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.
looks good
allowed_git_usernames = {'git', 'x-access-token'} | ||
|
||
if scm_type == 'git' and parts.scheme.endswith('ssh'): | ||
is_github_host = parts.hostname in special_hosts or parts.hostname.endswith('.github.com') |
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.
seems like we could have just done
if scm_type == 'git' and parts.scheme.endswith('ssh') and parts.hostname in special_git_hosts and not netloc_username in allowed_git_username:
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.
and followup question, does this x-access-token work for bit bucket? if not, do we need to add validation for that case?
|
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.
@fosterseth @thedoubl3j are you not tracking pinned versions of awx-plugins anymore?
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.
This might be something we messed up during this patch @webknjaz lemme look at what we had it set to before and see if it was over written
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.
@thedoubl3j yeah, I figured. I think this got forgotten in some other PR, though. Because I saw it hardcoded to use Git links prior to it.
SUMMARY
AAP-385589 Implement GitHub App credential type - Changes needed for UI Testing
ISSUE TYPE
COMPONENT NAME
AWX VERSION
ADDITIONAL INFORMATION