1Password / op-vscode

1Password for VS Code
https://marketplace.visualstudio.com/items?itemName=1Password.op-vscode
MIT License
209 stars 11 forks source link

how to execute code having 1Password reference #163

Closed sfc-gh-smisra closed 9 months ago

sfc-gh-smisra commented 10 months ago

Hi Team,

The documentation doesn't clarify how to run a script, if it has a secret reference. Every time I try to run the script with op run prefix , it fails to load the actual value of the secret at runtime

jodyheavener commented 9 months ago

Hi @sfc-gh-smisra, thanks for filing this issue. The VS Code extension can help you insert references into the code you're working on, but is not directly responsible for executing code. For this you'll want to check the documentation for op run and how to use it in your terminal. I'm going to close this ticket as out of scope, but feel free to re-open or open a new ticket if I got something wrong here. Thank you!

wichert commented 4 months ago

I'm not sure the solution given here (use op run) is sufficient. For example I don't see how you can do that when you want to debug a rust crate, which takes a secret as argument.