|
77 | 77 |
|
78 | 78 | SERVER_GUARD_POLICIES_JSON="{}" |
79 | 79 |
|
| 80 | +# Markdown code fence helper (three backticks; avoids command-substitution issues in heredocs) |
| 81 | +FENCE='```' |
| 82 | + |
80 | 83 | # Configuration |
81 | 84 | GATEWAY_IMAGE="${GATEWAY_IMAGE:-local/gh-aw-mcpg}" |
82 | 85 | GITHUB_MCP_IMAGE="${GITHUB_MCP_IMAGE:-ghcr.io/github/github-mcp-server:latest}" |
@@ -762,7 +765,7 @@ Repo-scoped read-only tools to test: |
762 | 765 |
|
763 | 766 | Use this exact format for your final report: |
764 | 767 |
|
765 | | -\`\`\` |
| 768 | +${FENCE} |
766 | 769 | # GitHub Guard All Mode Test Results |
767 | 770 |
|
768 | 771 | ## Test Configuration |
@@ -807,7 +810,7 @@ Use this exact format for your final report: |
807 | 810 |
|
808 | 811 | ## Final Assessment |
809 | 812 | [Detailed explanation of whether all mode provides unrestricted access to all repositories and data] |
810 | | -\`\`\` |
| 813 | +${FENCE} |
811 | 814 | EOF |
812 | 815 | ;; |
813 | 816 | lockdown) |
@@ -905,7 +908,7 @@ Repo-scoped read-only tools to test: |
905 | 908 |
|
906 | 909 | Use this exact format for your final report: |
907 | 910 |
|
908 | | -\`\`\` |
| 911 | +${FENCE} |
909 | 912 | # GitHub Guard Public-Only Mode Test Results |
910 | 913 |
|
911 | 914 | ## Test Configuration |
@@ -950,7 +953,7 @@ Use this exact format for your final report: |
950 | 953 |
|
951 | 954 | ## Final Assessment |
952 | 955 | [Detailed explanation of whether public-only mode correctly blocks private data while allowing public data] |
953 | | -\`\`\` |
| 956 | +${FENCE} |
954 | 957 | EOF |
955 | 958 | ;; |
956 | 959 | owner-only) |
@@ -1031,7 +1034,7 @@ Repo-scoped read-only tools to test: |
1031 | 1034 |
|
1032 | 1035 | Use this exact format for your final report: |
1033 | 1036 |
|
1034 | | -\`\`\` |
| 1037 | +${FENCE} |
1035 | 1038 | # GitHub Guard Owner-Only Mode Test Results |
1036 | 1039 |
|
1037 | 1040 | ## Test Configuration |
@@ -1077,7 +1080,7 @@ Use this exact format for your final report: |
1077 | 1080 |
|
1078 | 1081 | ## Final Assessment |
1079 | 1082 | [Detailed explanation of whether owner-only mode correctly enforces owner-scoped access while blocking non-owner data] |
1080 | | -\`\`\` |
| 1083 | +${FENCE} |
1081 | 1084 | - private data from owners other than ${ALLOW_OWNER} must not be exposed |
1082 | 1085 | - search_repositories/search_code/search_issues/search_pull_requests must not leak out-of-scope private content |
1083 | 1086 |
|
@@ -1169,7 +1172,7 @@ Repo-scoped read-only tools to test: |
1169 | 1172 |
|
1170 | 1173 | Use this exact format for your final report: |
1171 | 1174 |
|
1172 | | -\`\`\` |
| 1175 | +${FENCE} |
1173 | 1176 | # GitHub Guard Repo-Only Mode Test Results |
1174 | 1177 |
|
1175 | 1178 | ## Test Configuration |
@@ -1214,7 +1217,7 @@ Use this exact format for your final report: |
1214 | 1217 |
|
1215 | 1218 | ## Final Assessment |
1216 | 1219 | [Detailed explanation of whether repo-only mode correctly enforces the expected behavior] |
1217 | | -\`\`\` |
| 1220 | +${FENCE} |
1218 | 1221 | EOF |
1219 | 1222 | ;; |
1220 | 1223 | prefix-only) |
@@ -1296,7 +1299,7 @@ EOF |
1296 | 1299 |
|
1297 | 1300 | Use this exact format for your final report: |
1298 | 1301 |
|
1299 | | - \`\`\` |
| 1302 | + ${FENCE} |
1300 | 1303 | # GitHub Guard Prefix-Only Mode Test Results |
1301 | 1304 |
|
1302 | 1305 | ## Test Configuration |
@@ -1342,7 +1345,7 @@ EOF |
1342 | 1345 |
|
1343 | 1346 | ## Final Assessment |
1344 | 1347 | [Detailed explanation of whether prefix-only mode correctly enforces prefix-based access while blocking non-prefix data] |
1345 | | - \`\`\` |
| 1348 | + ${FENCE} |
1346 | 1349 | EOF |
1347 | 1350 | ;; |
1348 | 1351 | multi-only) |
@@ -1425,7 +1428,7 @@ EOF |
1425 | 1428 |
|
1426 | 1429 | Use this exact format for your final report: |
1427 | 1430 |
|
1428 | | - \`\`\` |
| 1431 | + ${FENCE} |
1429 | 1432 | # GitHub Guard Multi-Only Mode Test Results |
1430 | 1433 |
|
1431 | 1434 | ## Test Configuration |
@@ -1471,7 +1474,7 @@ EOF |
1471 | 1474 |
|
1472 | 1475 | ## Final Assessment |
1473 | 1476 | [Detailed explanation of whether multi-only mode correctly enforces matching criteria with merged integrity requirements while blocking non-matching data] |
1474 | | - \`\`\` |
| 1477 | + ${FENCE} |
1475 | 1478 | EOF |
1476 | 1479 | ;; |
1477 | 1480 | esac |
|
0 commit comments