File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -211,6 +211,9 @@ jobs:
211211 const commitSha = context.payload.pull_request.head.sha;
212212 const branchName = context.payload.pull_request.head.ref;
213213
214+ // Security: Sanitize branch name for safe display in Markdown
215+ const safeBranchName = branchName.replace(/[`\[\]]/g, '\\$&');
216+
214217 let allPassed = checkResult.lintConclusion === 'success' && checkResult.dockerConclusion === 'success';
215218 let emoji = allPassed ? '✅' : '❌';
216219 let status = allPassed ? 'Passed' : 'Failed';
@@ -247,7 +250,7 @@ jobs:
247250 }
248251
249252 body += `**Commit:** \`${commitSha}\`\n`;
250- body += `**Branch:** \`${branchName }\`\n`;
253+ body += `**Branch:** \`${safeBranchName }\`\n`;
251254
252255 if (checkResult.lintUrl || checkResult.dockerUrl) {
253256 body += `\n**🔗 View Details:**\n`;
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ ENV NEXT_TELEMETRY_DISABLED=1
3232ENV NEXT_PUBLIC_MOCK_USER=''
3333
3434# Install pnpm and generate Prisma client before build
35+ # Prisma will use binaryTargets from schema.prisma to generate engines for all platforms
3536RUN npm install -g pnpm && \
3637 pnpm prisma generate && \
3738 pnpm run build
Original file line number Diff line number Diff line change 11generator client {
2- provider = " prisma-client-js "
2+ provider = " prisma-client-js "
3+ binaryTargets = [" native " , " linux-musl-openssl-3.0.x " , " linux-musl-arm64-openssl-3.0.x " ]
34}
45
56datasource db {
You can’t perform that action at this time.
0 commit comments