Not overwriting existing environment variables
Can someone tell me what I am doing wrong here
According to https://developer.1password.com/docs/cli/reference/commands/run
Duplicate environment variables
If the same environment variable name exists in both the shell and the .env file, but are referencing different secrets, the variable set in the .env file will be used.
I have GITHUB_TOKEN defined in my shell
❯ printenv GITHUB_TOKEN
ghp_Cq...
I want to use a specific token from 1password so using op read I do the following
❯ op read --account=[account id] op://Personal/Github/terraform
ghp_Sw...
but when I create an .env file with the following content, op run is using the original value (but asking for permission to access 1password)
GITHUB_TOKEN=op://Personal/Github/terraform
❯ op run --account=[account id] --env-file="./.env" -- printenv GITHUB_TOKEN
ghp_Cq...
