Skip to content

fix(examples): keep trailing newlines in 1Password reads - #32

Merged
jahvon merged 1 commit into
mainfrom
fix/op-read-trailing-newline
Oct 13, 2026
Merged

jahvon merged 1 commit into
mainfrom
fix/op-read-trailing-newline

Conversation

@jahvon

@jahvon jahvon commented Oct 13, 2026

Copy link
Copy Markdown
Member

GetSecret strips the one trailing newline a command adds. op read appends a newline only when the value lacks one, and --no-newline never does, so values ending in a newline (kubeconfigs, PEM blocks) lost it. Append exactly one with echo, and test the shipped example through the real runner with a fake op.

GetSecret strips the one trailing newline a command adds. op read
appends a newline only when the value lacks one, and --no-newline
never does, so values ending in a newline (kubeconfigs, PEM blocks)
lost it. Append exactly one with echo, and test the shipped example
through the real runner with a fake op.
@jahvon
jahvon merged commit 292734a into main Oct 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant