Skip to content

Conversation

@adamtheturtle
Copy link
Member

@adamtheturtle adamtheturtle commented Jan 3, 2026

Use YAML block scalar syntax for replace field to fix zizmor warning.


Note

Workflow update

  • In release.yml, changes the gha-find-replace replace value to a YAML block scalar (|-) and adds an explicit trailing newline for the changelog insertion.
  • No application code changes; only CI configuration adjusted.

Written by Cursor Bugbot for commit 2ed976c. This will update automatically on new commits. Configure here.

@adamtheturtle adamtheturtle enabled auto-merge (squash) January 3, 2026 08:52
replace: "Next\n----\n\n${{ steps.calver.outputs.release }}\n${{ steps.changelog_underline.outputs.underline\
\ }}"
replace: |-
Next\n----\n\n${{ steps.calver.outputs.release }}\n${{ steps.changelog_underline.outputs.underline }}\n
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Block scalar preserves literal \n instead of newlines

The change from a double-quoted string to a YAML literal block scalar (|-) breaks the newline handling. In double-quoted strings, \n is interpreted as a newline character, but in literal block scalars, \n is preserved as the literal two characters backslash and 'n'. The find field still uses a double-quoted string with actual newlines, but the replace field will now insert literal \n text instead of line breaks, corrupting the CHANGELOG.rst file format when the release workflow runs.

Fix in Cursor Fix in Web

@adamtheturtle adamtheturtle merged commit 52bc9aa into main Jan 3, 2026
104 checks passed
@adamtheturtle adamtheturtle deleted the fix-zizmor-warning branch January 3, 2026 09:07
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