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

github plugin does not honor the GH_CONFIG_DIR env var or search all the possible paths for the config file. #411

Open
eedgar opened this issue Dec 7, 2023 · 0 comments
Labels
op-cli Functionality to be implemented in 1Password CLI. Needs to be done by 1Password Developers.

Comments

@eedgar
Copy link

eedgar commented Dec 7, 2023

op CLI version

2.22

Goal or desired behavior

GH_CONFIG_DIR: the directory where gh will store configuration files. If not specified,
the default value will be one of the following paths (in order of precedence):

  • "$XDG_CONFIG_HOME/gh" (if $XDG_CONFIG_HOME is set),
  • "$AppData/GitHub CLI" (on Windows if $AppData is set), or
  • "$HOME/.config/gh".

as shown in the gh environments command currently only the last search place of $HOME/.config/gh is shown

it should search all the possible places for importing the token

This issue only impacts import as the plugin uses env vars otherwise.

Current behavior

only $HOME/.config/gh is searched

Relevant log output

No response

@eedgar eedgar added the op-cli Functionality to be implemented in 1Password CLI. Needs to be done by 1Password Developers. label Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
op-cli Functionality to be implemented in 1Password CLI. Needs to be done by 1Password Developers.
Projects
None yet
Development

No branches or pull requests

1 participant