release.yml release lookup uses limit=50 with no pagination #11
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
eric/apprise-wordpress-notifications#11
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Found during security audit run 3 (2026-10-16). This is a CI bug, not a security issue.
Problem
release.ymlfinds an existing release or draft for the tag withGET $API/releases?limit=50(.forgejo/workflows/release.yml:218), with no pagination. Once the repo has more than 50 releases, a draft or UI-created release for the tag may not be on the first page. The job then tries to create a new one, which fails on the duplicate tag, and the release is never published.Fix
GET $API/releases/tags/$TAGand handle the 404. Check whether this endpoint returns drafts on our Forgejo version. If it doesn't, fall back to a paginated list.page=Nuntil a page returns empty.