diff --git a/.woodpecker.yml b/.woodpecker.yml index dfde329..f7ba88b 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -100,7 +100,10 @@ steps: commands: - apk add --no-cache curl jq - | - PAYLOAD=$(printf '%s' "${CI_COMMIT_MESSAGE}" | jq -Rs \ + # Schreibe Commit-Message in Datei (sicher gegen Shell-Sonderzeichen) + printf '%s\n' "$CI_COMMIT_MESSAGE" > /tmp/commit_msg.txt + + PAYLOAD=$(cat /tmp/commit_msg.txt | jq -Rs \ --arg title "✅ Build #${CI_BUILD_NUMBER} - Success" \ --arg repo "${CI_REPO}" \ --arg branch "${CI_COMMIT_BRANCH}" \ @@ -138,7 +141,10 @@ steps: commands: - apk add --no-cache curl jq - | - PAYLOAD=$(printf '%s' "${CI_COMMIT_MESSAGE}" | jq -Rs \ + # Schreibe Commit-Message in Datei (sicher gegen Shell-Sonderzeichen) + printf '%s\n' "$CI_COMMIT_MESSAGE" > /tmp/commit_msg.txt + + PAYLOAD=$(cat /tmp/commit_msg.txt | jq -Rs \ --arg title "❌ Build #${CI_BUILD_NUMBER} - Failure" \ --arg repo "${CI_REPO}" \ --arg branch "${CI_COMMIT_BRANCH}" \