-
Notifications
You must be signed in to change notification settings - Fork 100
New functionality for managing tokens securely #584
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
|
Since we're concerned about the possibilities of token being logged, should we re-visit the setup for running E2E tests for the project? It requires a user writing their token in |
We discussed this and I agree that we should:
|
|
With the new changes in |
Good catch! Updated 😊 |
Summary of Changes
🟢 New URL: https://aka.ms/winget-create-token
This pull request includes multiple changes focused on improving the handling and documentation of GitHub tokens in the Winget-Create CLI. The changes include updates to documentation files and the addition of new functionality for managing tokens securely.
Screenshots
Documentation Updates:
doc/new-locale.md,doc/new.md,doc/show.md,doc/submit.md,doc/token.md,doc/update-locale.md,doc/update.md) about the potential logging of GitHub tokens when using the--tokenargument, and recommended alternative approaches. [1] [2] [3] [4] [5] [6] [7] [8]New Functionality:
TokenHelperclass to handle token operations using the Windows credentials manager and environment variables, enhancing security and flexibility.Warning
For local development, it is recommended to go through the OAuth flow by omitting the
--tokenargument.For CI/CD scenarios, it is recommended to use the 'WINGET_CREATE_GITHUB_TOKEN' environment variable to store the token.
Logging Improvements:
Program.csfile) to notify users when a token is provided via the command line, highlighting the risk of token logging.Resource Updates:
Resources.Designer.cs,Resources.resx) to include new warning messages related to token usage. [1] [2] [3]Related links:
These changes collectively enhance the security and user awareness regarding the handling of GitHub tokens within the Winget-Create CLI.
Microsoft Reviewers: Open in CodeFlow