"Export a secret reference as an environment variable" not working for me in fish shell

Options
amtrakyams
amtrakyams
Community Member

Followed directions here:
https://developer.1password.com/docs/cli/secret-references#export-a-secret-reference-as-an-environment-variable

op run --no-masking -- printenv GITHUB_TOKEN prints out the var as expected after set up. But when I run something that leverages GITHUB_TOKEN env var (like terraform), the reference doesn't appear to get replaced with the secret e.g. op://development/GitHub/credentials/personal_token is not

Is this not supported in fish shell? If not, is there another simple way to have environment variables? I also tried https://developer.1password.com/docs/cli/shell-plugins/github

I'm trying to use this with terraform cmd line tool atm. Terraform has a github provider that needs the GITHUB_TOKEN env var set.

Let me know if you have any questions and if I'm doing something wrong!

Thanks,
Mark


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser:_ Not Provided
Referrer: forum-search:fish

Comments

  • amtrakyams
    amtrakyams
    Community Member
    Options

    I'm on the latest 1password (upgraded this morning) and downloaded latest non-beta CLI tool.

  • Hi @amtrakyams:

    Are you able to share an example of your specific op run command you're running and having trouble with?

    If not, please get in touch with us via email at support+forum@1password.com and we'll take a closer look there.

    Let me know!

    Jack

This discussion has been closed.