feat: make metadata/manifest GET endpoint publicly accessible (#676) #677
Reference in New Issue
Block a user
Delete Branch "fix/676-public-metadata"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary\n\nRemoves
reqRepoReaderauth requirement from GET/repos/{owner}/{repo}/metadataand/manifestendpoints, making them publicly accessible for public repos without authentication.\n\n## Changes\n\n-routers/api/v1/api.go: SplitComboroutes into separateGet/Putroutes\n- GET: no auth required (public repos accessible anonymously)\n- PUT: still requiresreqToken()+reqAdmin()\n\n## Why\n\n- CI workflows need platform type without a token\n- Package registries need version info\n- Metadata is non-sensitive (version, platform, element name)\n- Matches existing pattern (badges are already public)\n\nCloses #676Remove reqRepoReader auth requirement from GET /repos/{owner}/{repo}/metadata and /manifest endpoints. PUT (update) still requires token + admin.Pull request closed