From 6b68d24bff9cf3eca70a639edb95fb7a195c3153 Mon Sep 17 00:00:00 2001 From: Derek Brown Date: Fri, 13 Jun 2025 16:16:08 -0700 Subject: [PATCH 1/3] fix: escape commit messages --- action.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 496a0a9..d9a24a0 100644 --- a/action.yml +++ b/action.yml @@ -27,10 +27,21 @@ inputs: runs: using: composite steps: + - name: Set env (escaped) + id: env + shell: bash + run: | + { + echo "commit_message<> $GITHUB_ENV + { + echo "input_message<> $GITHUB_ENV - name: Set fields - env: - input_message: ${{ inputs.message }} - commit_message: ${{ github.event.head_commit.message }} shell: bash if: always() id: fields @@ -60,7 +71,11 @@ runs: commit_message="Link to the latest commit in the repository" message="" fi - echo "message=$message" >> $GITHUB_OUTPUT + { + echo "message<> $GITHUB_OUTPUT author=${{ github.event.pusher.name }} # context from `push` trigger author=${author:-${{ github.event.sender.login }}} # context from `workflow_dispatch` trigger From 7f25bdeda178261253e573bec6cda68d92ae0869 Mon Sep 17 00:00:00 2001 From: Derek Brown Date: Wed, 18 Jun 2025 16:50:08 -0700 Subject: [PATCH 2/3] updated the readme so I have something to revert --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 8a00927..b5a1cde 100644 --- a/README.md +++ b/README.md @@ -86,3 +86,7 @@ Please follow [Conventional Commits](https://www.conventionalcommits.org/en/v1.0 ## Maintainers Made with ❤️ by the Service Foundations teams. + +## Imagine we added a whole new section + +Just to test that a reverted commit resulting in a commit message with newlines and quotes won't break the world From cd3e3b74d5aeeda20e8062951432cbd3490666a9 Mon Sep 17 00:00:00 2001 From: Derek Brown Date: Wed, 18 Jun 2025 16:50:15 -0700 Subject: [PATCH 3/3] chore: Revert "updated the readme so I have something to revert" This reverts commit 7f25bdeda178261253e573bec6cda68d92ae0869. --- README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/README.md b/README.md index b5a1cde..8a00927 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,3 @@ Please follow [Conventional Commits](https://www.conventionalcommits.org/en/v1.0 ## Maintainers Made with ❤️ by the Service Foundations teams. - -## Imagine we added a whole new section - -Just to test that a reverted commit resulting in a commit message with newlines and quotes won't break the world