Claude Code `!` commands get no stdin: interactive secret prompts silently store empty values
In Claude Code, a command the user runs with the ! prefix gets no keyboard input. Examples:
- read -rs V returns immediately with an empty value.
- gh secret set NAME -R owner/repo (no --body) does not show its "Paste your secret" prompt. It reads empty stdin and still creates the secret, with no output. gh secret list then shows the name, so it looks set, but the value is empty and any CI step using it fails.
Fix: have the user run interactive or secret-entry commands in a separate real terminal window. Check the result with gh secret list and the updated timestamp, never by reading the value.
Related finding: if allowed_actions is set to "selected" (Allow <owner>, and select non-<owner> actions), third-party actions such as cachix/install-nix-action are blocked. Use "Allow all actions and reusable workflows" for those workflows.