Skip to content

Trim carriage return \r in parsed multi-line env vars and secrets#154

Merged
nathaniel-cruz-aligent merged 1 commit into
mainfrom
bugfix/trim_carriage_return
Jun 4, 2026
Merged

Trim carriage return \r in parsed multi-line env vars and secrets#154
nathaniel-cruz-aligent merged 1 commit into
mainfrom
bugfix/trim_carriage_return

Conversation

@nathaniel-cruz-aligent
Copy link
Copy Markdown
Contributor

Description of the proposed changes
Strip \r carriage return characters when exporting AIO_DEPLOY_EXTRA_VARS and AIO_DEPLOY_EXTRA_SECRETS to $GITHUB_ENV.

Multi-line GitHub variables (vars.* / secrets.*) can contain Windows-style line endings (\r\n). When these are parsed and appended to $GITHUB_ENV, the trailing \r becomes part of the value (e.g. MY_VAR=some_value\r), causing silent failures in downstream steps that consume these environment variables.

https://aligent.slack.com/archives/C093KUAK6BV/p1780440624446019?thread_ts=1780281479.709199&cid=C093KUAK6BV

Screenshots (if applicable)

Other solutions considered (if any)

Notes to PR author

⚠️ Please make sure the changes adhere to the guidelines mentioned in our contribution guide.

Notes to reviewers

ℹ️ When you've finished leaving feedback, please add a final comment to the PR tagging the author, letting them know that you have finished leaving feedback

Comment thread .github/workflows/aio-app-deployment.yml
@nathaniel-cruz-aligent nathaniel-cruz-aligent merged commit a932d15 into main Jun 4, 2026
3 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.

2 participants