Skip to content

fix: stop one IP-allow-listed repo from freezing Likes and rot - #193

Merged
jamesconwaydev merged 1 commit into
mainfrom
fix-meta-forbidden
Nov 6, 2026
Merged

jamesconwaydev merged 1 commit into
mainfrom
fix-meta-forbidden

Conversation

@jamesconwaydev

Copy link
Copy Markdown
Collaborator

Sync Likes has failed every run since 05:46 UTC:

FORBIDDEN ... the `aquasecurity` organization has an IP allow list enabled, and your IP address is not permitted to access this resource.

One repo in a 50-repo RepoMeta batch was refused, and the whole run died with it. No Like has been counted since 03:27 UTC. Rot hits the same repo over REST and would abort the weekly check.

What changes:

  • graphql(allow_forbidden=True) lets through FORBIDDEN errors that name an alias. A FORBIDDEN with no path still raises, because that's the whole query refused.
  • Sync Likes keeps a hidden repo's last meta.json card, so trivy keeps its stars and avatar.
  • Rot treats the IP allow list 403 as Undecided. It gets logged and tracked for review instead of stopping the check. Every other 403 still aborts.

Tests: 540 pass, new cases for each of the three.

aquasecurity turned on an org IP allow list, so GitHub now refuses the
App token on aquasecurity/trivy. The RepoMeta batch came back with one
FORBIDDEN alias and Sync Likes raised on it, so no Like has been counted
since 03:27 UTC. Rot would abort the same way on the REST 403.

- graphql(allow_forbidden=True) lets through FORBIDDEN errors that name
  an alias; a pathless FORBIDDEN still raises.
- Sync Likes keeps a hidden repo's last meta.json card.
- Rot treats the IP allow list 403 as Undecided, so it is logged and
  tracked for review instead of stopping the weekly check.
@jamesconwaydev
jamesconwaydev merged commit c533b98 into main Nov 6, 2026
9 checks passed
@jamesconwaydev
jamesconwaydev deleted the fix-meta-forbidden branch November 6, 2026 14:24
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.

1 participant