-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[AppService] az appservice: Add function to retrieve users github personal access token #17826
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
Conversation
ace0a06 to
788d2d0
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.
Could you share where this ID comes from?
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.
It's an oauth app created by AppService CLI team: https://github.com/AzureAppServiceCLI
Is there an official Azure oauth app we can use, or should we stick to this one?
9dfc04d to
e6c8ae4
Compare
panchagnula
left a comment
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.
Can't wait for supporting GitHub actions on CLI with full GitHub authentication with this. Thank you.
|
"Azure.azure-cli (Check CLI Style)" has problems. We are fixing it. New version of astroid changed |
b6e1450 to
6c1e39e
Compare
|
Hi @qwordy do you mind re-reviewing the latest commit? I added additional changes to support |
6c1e39e to
3ff465c
Compare
8b930d2 to
d77d55f
Compare
|
@calvinsID can you update the title to include the support for GitHub actions as well since this will be used automatically to update the release history documentation to the users? |
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.
Also add it to setup.py otherwise pip install will fail
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.
Added. Why are only some of the requirements.txt added to setup.py dependencies?
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.
pip install reads setup.py. Windows MSI artifact build reads requirements.txt. It makes me confused why two dependency definitions, too.
@fengzhou-msft Could you answer the question by Calvin?
|
@calvinsID looks like this change has some merge conflicts. |
…LI extensions repo) and github_action property in az webapp deployment source config command
94b3dd5 to
fda252b
Compare
|
@qwordy wondering if u know how I can fix the failing check? |
Just rerun |
| 'jsmin~=2.2.2', | ||
| 'jsondiff==1.2.0', | ||
| 'packaging~=20.9', | ||
| 'PyGithub==1.38', |
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.
github module is not imported anywhere. Is this dependency necessary?
The pinned version causes problem when being installed with the latest PyGithub (#18548):
azure-cli 2.24.2 requires PyGithub==1.38, but you'll have pygithub 1.55 which is incompatible.
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.
I should have added it to this PR instead, it will be used in this one #18261. And yes we shouldn't pin, we can use ~= and unpin. Thanks for bringing this up
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.
Could you change the dependency to use ~= instead?
Description
get_github_access_tokento help users retrieve github access token easierTesting Guide
This is not exposed in a command yet, as I'm not sure what command to put it under. We will be using this function in webapp commands in the future, and static webapps have use cases as well
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.