Skip to content

Commit c8b76ee

Browse files
Copilotlpcox
andcommitted
Replace escaped backtick fences with ${FENCE} variable in report templates
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
1 parent 3970eef commit c8b76ee

1 file changed

Lines changed: 15 additions & 12 deletions

File tree

guards/github-guard/scripts/run_copilot_test.sh

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ esac
7777

7878
SERVER_GUARD_POLICIES_JSON="{}"
7979

80+
# Markdown code fence helper (three backticks; avoids command-substitution issues in heredocs)
81+
FENCE='```'
82+
8083
# Configuration
8184
GATEWAY_IMAGE="${GATEWAY_IMAGE:-local/gh-aw-mcpg}"
8285
GITHUB_MCP_IMAGE="${GITHUB_MCP_IMAGE:-ghcr.io/github/github-mcp-server:latest}"
@@ -762,7 +765,7 @@ Repo-scoped read-only tools to test:
762765
763766
Use this exact format for your final report:
764767
765-
\`\`\`
768+
${FENCE}
766769
# GitHub Guard All Mode Test Results
767770
768771
## Test Configuration
@@ -807,7 +810,7 @@ Use this exact format for your final report:
807810
808811
## Final Assessment
809812
[Detailed explanation of whether all mode provides unrestricted access to all repositories and data]
810-
\`\`\`
813+
${FENCE}
811814
EOF
812815
;;
813816
lockdown)
@@ -905,7 +908,7 @@ Repo-scoped read-only tools to test:
905908
906909
Use this exact format for your final report:
907910
908-
\`\`\`
911+
${FENCE}
909912
# GitHub Guard Public-Only Mode Test Results
910913
911914
## Test Configuration
@@ -950,7 +953,7 @@ Use this exact format for your final report:
950953
951954
## Final Assessment
952955
[Detailed explanation of whether public-only mode correctly blocks private data while allowing public data]
953-
\`\`\`
956+
${FENCE}
954957
EOF
955958
;;
956959
owner-only)
@@ -1031,7 +1034,7 @@ Repo-scoped read-only tools to test:
10311034
10321035
Use this exact format for your final report:
10331036
1034-
\`\`\`
1037+
${FENCE}
10351038
# GitHub Guard Owner-Only Mode Test Results
10361039
10371040
## Test Configuration
@@ -1077,7 +1080,7 @@ Use this exact format for your final report:
10771080
10781081
## Final Assessment
10791082
[Detailed explanation of whether owner-only mode correctly enforces owner-scoped access while blocking non-owner data]
1080-
\`\`\`
1083+
${FENCE}
10811084
- private data from owners other than ${ALLOW_OWNER} must not be exposed
10821085
- search_repositories/search_code/search_issues/search_pull_requests must not leak out-of-scope private content
10831086
@@ -1169,7 +1172,7 @@ Repo-scoped read-only tools to test:
11691172
11701173
Use this exact format for your final report:
11711174
1172-
\`\`\`
1175+
${FENCE}
11731176
# GitHub Guard Repo-Only Mode Test Results
11741177
11751178
## Test Configuration
@@ -1214,7 +1217,7 @@ Use this exact format for your final report:
12141217
12151218
## Final Assessment
12161219
[Detailed explanation of whether repo-only mode correctly enforces the expected behavior]
1217-
\`\`\`
1220+
${FENCE}
12181221
EOF
12191222
;;
12201223
prefix-only)
@@ -1296,7 +1299,7 @@ EOF
12961299
12971300
Use this exact format for your final report:
12981301
1299-
\`\`\`
1302+
${FENCE}
13001303
# GitHub Guard Prefix-Only Mode Test Results
13011304
13021305
## Test Configuration
@@ -1342,7 +1345,7 @@ EOF
13421345
13431346
## Final Assessment
13441347
[Detailed explanation of whether prefix-only mode correctly enforces prefix-based access while blocking non-prefix data]
1345-
\`\`\`
1348+
${FENCE}
13461349
EOF
13471350
;;
13481351
multi-only)
@@ -1425,7 +1428,7 @@ EOF
14251428
14261429
Use this exact format for your final report:
14271430
1428-
\`\`\`
1431+
${FENCE}
14291432
# GitHub Guard Multi-Only Mode Test Results
14301433
14311434
## Test Configuration
@@ -1471,7 +1474,7 @@ EOF
14711474
14721475
## Final Assessment
14731476
[Detailed explanation of whether multi-only mode correctly enforces matching criteria with merged integrity requirements while blocking non-matching data]
1474-
\`\`\`
1477+
${FENCE}
14751478
EOF
14761479
;;
14771480
esac

0 commit comments

Comments
 (0)