node icon indicating copy to clipboard operation
node copied to clipboard

chore: Fix infinite loop in dependency updater

Open HoustonOla35 opened this issue 1 month ago • 1 comments

Fixes a bug where the pagination loop could run indefinitely when searching for releases with a tag prefix. The original code had an unreachable else if resp.NextPage == 0 condition after else if TagPrefix != "", causing the loop to restart from page 0 when no more pages exist. Added proper NextPage validation inside the TagPrefix branch and a 100-page safety limit to prevent infinite loops from API anomalies.

HoustonOla35 avatar Nov 03 '25 14:11 HoustonOla35

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

cb-heimdall avatar Nov 03 '25 14:11 cb-heimdall

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Nov 22 '25 00:11 github-actions[bot]