Skip to content

Preserve multiline environment values when invoking Docker - #134

Open
g105b wants to merge 2 commits into
masterfrom
review/pr-129-env
Open

g105b wants to merge 2 commits into
masterfrom
review/pr-129-env

Conversation

@g105b

@g105b g105b commented Nov 27, 2026

Copy link
Copy Markdown
Member

Multiline runner environment values currently produce invalid DOCKER_ENV entries, as reported in #128. This builds on #129 (including its original commit) and replaces line-based serialization with NUL-delimited environment reads and Docker --env NAME arguments, preserving complete values without logging rejected contents.

Container-defined variables remain excluded. Variable names are compared literally, and invalid names are skipped with a generic warning.

Validation: bash -n composer-action.bash, git diff --check, and python3 -m unittest discover -s tests -v pass. Regression coverage includes multiline values and apparent embedded assignments, empty values, punctuation, container defaults, invalid names, and safe logging. A real-container check was unavailable because Docker socket access is denied in this environment.

Fixes #128. Supersedes #129.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Composer installation fails with invalid DOCKER_ENV contents

2 participants