Skip to content

Escape single quote string values for YAML #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 16, 2025

Conversation

runesoerensen
Copy link
Contributor

The lib/libcnb_telemetry_build_report.jq function produced invalid YAML when string values contained a single quote.

This change uses jq's gsub function to replace each ' with '', ensuring the output is always valid YAML.

GUS-W-19063122

@runesoerensen runesoerensen requested a review from a team as a code owner July 16, 2025 07:18
@runesoerensen runesoerensen merged commit 476b574 into main Jul 16, 2025
5 checks passed
@runesoerensen runesoerensen deleted the escape-single-quotes-for-report branch July 16, 2025 07:52
@heroku-linguist heroku-linguist bot mentioned this pull request Jul 16, 2025
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