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
Add credential method to access GitHub with Personal Access Token #813
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #813 +/- ##
============================================
- Coverage 65.74% 65.66% -0.08%
+ Complexity 3291 3289 -2
============================================
Files 350 351 +1
Lines 13731 13751 +20
Branches 1488 1491 +3
============================================
+ Hits 9027 9030 +3
- Misses 3862 3872 +10
- Partials 842 849 +7
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
So far so good! Could you continue to:
- Add documentation; and
- Update GitMirrorAuthTest so we can test access-token-based authentication manually? (I already gave you the read permission to the private test repository.)
@taiga-nada will send a follow-up PR that updates |
I updated documentations. |
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.
🚀🚀🚀 (Build failure will be fixed once you merge the latest master)
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.
Thanks, @taiga-nada! 🚀💯 LGTM if CI builds pass.
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! Thanks 🙇 👍 🚀
…t` (#820) Motivation: We want to verify access token credential using [GitHub Personal Access Token (PAT)](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token). Modifications: - Added test codes for GitHub Personal Access Token into `GitMirrorAuthTest` Related: - We can do auth test with access token (relates to: #813)
Motivation:
It'd be nice if a user can use GitHub Personal Access Token (PAT) to mirror a GitHub repository.
Modifications:
AccessTokenMirrorCredential
to access a GitHub repository with PAT.Result: