# Commands checked for printed secrets 4 refused, 3 allowed, of 7 commands | Command | Verdict | Why | | --- | --- | --- | | `doppler secrets get STRIPE_SECRET_KEY --plain` | refused | "doppler secrets get STRIPE_SECRET_KEY --plain" prints a secret: list names with `doppler secrets --only-names`, pipe the value where it goes, or use `doppler run -- ` | | `pbpaste \| doppler secrets set API_KEY` | refused | "doppler secrets set API_KEY" prints a secret: `doppler secrets set` prints the value it stored; end the command with `> /dev/null` or add `--silent` | | `echo $STRIPE_SECRET_KEY` | refused | "echo $STRIPE_SECRET_KEY" prints a secret: check it is set instead: `test -n "$NAME" && echo set` | | `doppler secrets get API_KEY --plain \| head -c 6` | refused | "doppler secrets get API_KEY --plain" prints a secret and "head -c 6" shows it: list names with `doppler secrets --only-names`, pipe the value where it goes, or use `doppler run -- ` | | `pbpaste \| tr -d '[:space:]' \| doppler secrets set API_KEY > /dev/null && pbcopy < /dev/null` | allowed | | | `doppler secrets get API_KEY --plain \| gh secret set API_KEY` | allowed | | | `doppler secrets --only-names` | allowed | |