Skip to content
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 github config file importer #74

Merged
merged 5 commits into from Dec 13, 2022
Merged

Add github config file importer #74

merged 5 commits into from Dec 13, 2022

Conversation

volodymyrZotov
Copy link
Contributor

@volodymyrZotov volodymyrZotov commented Dec 7, 2022

This PR adds an ability to import credentials from GitHub CLI config file.

Config file location is ~/.config/gh/hosts.yml

The plugin can import only PATs with ghp_ prefix. Support for other token types will be added later.

plugins/github/personal_access_token_test.go Outdated Show resolved Hide resolved
plugins/github/personal_access_token_test.go Outdated Show resolved Hide resolved
plugins/github/personal_access_token_test.go Outdated Show resolved Hide resolved
@SimonBarendse SimonBarendse merged commit 339be96 into main Dec 13, 2022
@SimonBarendse SimonBarendse deleted the github_importers branch December 13, 2022 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants