File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed
Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 3939 COMMIT_MESSAGE="${{ github.event.head_commit.message }}"
4040 fi
4141 # Export for use in other steps (multiline-safe)
42- echo "commit_message<<EOF" >> $GITHUB_OUTPUT
43- echo "$COMMIT_MESSAGE" >> $GITHUB_OUTPUT
44- echo "EOF" >> $GITHUB_OUTPUT
42+ # Use printf with %s to avoid interpreting special characters
43+ {
44+ echo "commit_message<<EOF"
45+ printf "%s\n" "$COMMIT_MESSAGE"
46+ echo "EOF"
47+ } >> $GITHUB_OUTPUT
4548
4649 check-trigger-condition :
4750 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 5252 COMMIT_MESSAGE='${{ github.event.head_commit.message }}'
5353 fi
5454 # Export for use in other steps (multiline-safe)
55- echo "commit_message<<EOF" >> $GITHUB_OUTPUT
56- echo "$COMMIT_MESSAGE" >> $GITHUB_OUTPUT
57- echo "EOF" >> $GITHUB_OUTPUT
55+ # Use printf with %s to avoid interpreting special characters
56+ {
57+ echo "commit_message<<EOF"
58+ printf "%s\n" "$COMMIT_MESSAGE"
59+ echo "EOF"
60+ } >> $GITHUB_OUTPUT
5861
5962 lint :
6063 needs : [get-commit-message]
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ def _get_console() -> Console:
2424 "error" : "red1" ,
2525 }),
2626 width = int (os .environ .get ("AIGNOSTICS_CONSOLE_WIDTH" , "0" )) or None ,
27+ legacy_windows = False , # Modern Windows (10+) doesn't need width adjustment
2728 )
2829
2930
You can’t perform that action at this time.
0 commit comments