Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ jobs:
const commitSha = context.payload.pull_request.head.sha;
const branchName = context.payload.pull_request.head.ref;

// Security: Sanitize branch name for safe display in Markdown
const safeBranchName = branchName.replace(/[`\[\]]/g, '\\$&');

let allPassed = checkResult.lintConclusion === 'success' && checkResult.dockerConclusion === 'success';
let emoji = allPassed ? '✅' : '❌';
let status = allPassed ? 'Passed' : 'Failed';
Expand Down Expand Up @@ -247,7 +250,7 @@ jobs:
}

body += `**Commit:** \`${commitSha}\`\n`;
body += `**Branch:** \`${branchName}\`\n`;
body += `**Branch:** \`${safeBranchName}\`\n`;

if (checkResult.lintUrl || checkResult.dockerUrl) {
body += `\n**🔗 View Details:**\n`;
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ ENV NEXT_TELEMETRY_DISABLED=1
ENV NEXT_PUBLIC_MOCK_USER=''

# Install pnpm and generate Prisma client before build
# Prisma will use binaryTargets from schema.prisma to generate engines for all platforms
RUN npm install -g pnpm && \
pnpm prisma generate && \
pnpm run build
Expand Down
3 changes: 2 additions & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
generator client {
provider = "prisma-client-js"
provider = "prisma-client-js"
binaryTargets = ["native", "linux-musl-openssl-3.0.x", "linux-musl-arm64-openssl-3.0.x"]
}

datasource db {
Expand Down