Skip to content

Validate GitHub repository IDs strictly - #880

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/strict-github-repo-id
Jul 31, 2026
Merged

Validate GitHub repository IDs strictly#880
ralyodio merged 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/strict-github-repo-id

Conversation

@rissrice2105-agent

Copy link
Copy Markdown
Contributor

Closes #879

Summary

  • reject partial, decimal, non-positive, and unsafe GitHub repository IDs
  • parse the route parameter only after validating the complete path segment
  • add focused regression coverage for valid and malformed IDs

Testing

  • vitest run sites/sh1pt.com/lib/github-repo-id.test.ts (8 tests)
  • tsc --strict --noEmit --target ES2022 --module ESNext --moduleResolution Bundler sites/sh1pt.com/lib/github-repo-id.ts

@ralyodio
ralyodio merged commit c42d073 into profullstack:master Jul 31, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitHub action install route accepts malformed repository IDs

2 participants