From 2fecaaf49c8a7796c0db7714ed6f704b5802eae8 Mon Sep 17 00:00:00 2001 From: divyanshujethi Date: Wed, 25 Nov 2026 01:03:34 +0530 Subject: [PATCH] fix(action): eliminate unindented heredoc breaking YAML parsing --- action.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/action.yml b/action.yml index ea64a4c..95ab3de 100644 --- a/action.yml +++ b/action.yml @@ -65,18 +65,18 @@ runs: echo "\`\`\`" >> "$GITHUB_STEP_SUMMARY" if [ "$INPUT_POST_PR_COMMENT" = "true" ] && [ -n "$GITHUB_TOKEN" ] && [ "$GH_EVENT_NAME" = "pull_request" ] && [ -n "$PR_NUMBER" ]; then - COMMENT_BODY=$(cat < 🛠️ *Audited by [MCP Builder Kit](https://mcp.ritualdev.in) production toolchain.* -EOF -) - export COMMENT_BODY node -e ' + const fs = require("fs"); const https = require("https"); - const data = JSON.stringify({ body: process.env.COMMENT_BODY }); + const report = fs.readFileSync(".mcp-audit-report.txt", "utf8"); + const body = [ + "### ⚡ MCP Server Protocol & Security Audit Report", + "```text", + report.trimEnd(), + "```", + "> 🛠️ *Audited by [MCP Builder Kit](https://mcp.ritualdev.in) production toolchain.*" + ].join("\n"); + const data = JSON.stringify({ body }); const repo = process.env.GH_REPOSITORY; const prNum = process.env.PR_NUMBER; const req = https.request({