You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9f2b4be
Browse filesBrowse the repository at this point in the historyBrowse files
Strip CRLF line endings from environment variable values
Fixes issue #28: env_file and env_file_path now strip trailing carriage returns
from each line, which GitHub's web form stores when editing multi-line secrets.
Every affected line is reported, matching the behavior of trim_inputs for
whitespace issues.
The fix:
- Detects trailing \r on each line in load_env_file
- Strips it before blank/comment/format checks
- Counts and reports stripped lines to alert users of the issue
- Works for both env_file and env_file_path inputs
- Does not affect LF-only input (no report issued)
Tests added:
- CRLF values are exported without the \r
- Multiple CRLF lines are counted and reported correctly
- LF-only input does not trigger a report
- CRLF comment lines are still skipped
- Both env_file and env_file_path handle CRLF correctly
Closes#28
Strip CRLF line endings from environment variable values, which GitHub's web form stores when editing multi-line secrets. Values are reported as processed.
0 commit comments