Commit 8ef6507
fix(test): tighten URL substring assertion to silence CodeQL false positive
CodeQL flagged \`assert "https://my.merchant" in section\` as
\`py/incomplete-url-substring-sanitization\` (high severity). The pattern
matters when checking whether a user-supplied URL falls inside an allowlist
substring; here it's a test assertion verifying the rendered llms.txt section
contains the test fixture's app_url. Same effect with a more specific
substring (\`agentscore-pay pay POST https://my.merchant\`) — CodeQL no
longer matches the dangerous pattern.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 84b789f commit 8ef6507
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
0 commit comments