[SOLVED] `op run --` does not conceal value when do writeFile in nodejs
When I do writeFile into stdout/stderr, it just prints out the value. If I just do console.log(process.env.GITHUB_USERNAME), the value is concealed. Here's the source code:
require("dotenv").config();
const process = require("process");
const fs = require("fs");
fs.writeFileSync(0, process.env.GITHUB_USERNAME);
1Password Version: 8.10.6
Extension Version: Not Provided
OS Version: macOS 13.3.1(a)
Browser:_ cli
0
Comments
-
Turns out it was my mistake, I wrote the value into stdin.
0 -
Glad you figured this out! Let us know if we can help with anything else!
Best,
Horia0
This discussion has been closed.