Skip to content

Add bounded upstream freshness reporting - #3

Merged
HuffmanMainNode merged 8 commits into
mainfrom
modernization/upstream-freshness-check
Nov 3, 2026
Merged

HuffmanMainNode merged 8 commits into
mainfrom
modernization/upstream-freshness-check

Conversation

@HuffmanMainNode

@HuffmanMainNode HuffmanMainNode commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds an optional, read-only upstream status refresh for catalog maintainers.

Changes

  • Expose canonical repository identifiers from the local catalog validator.
  • Add a standard-library GitHub REST API checker for archived/disabled status, default branch, last push timestamp, license SPDX ID, and visibility.
  • Use GITHUB_TOKEN when available; without a token, limit each run to 50 repositories by default.
  • Support explicit limits, request spacing, and JSON report output.
  • Handle 404 as ambiguous not_found_or_private, distinguish rate limiting, and never modify catalog cards.
  • Fail closed if the local catalog itself contains validation errors.
  • Add tests for metadata parsing, read-only token headers, 404/rate-limit handling, and bounded unauthenticated runs.
  • Document interpretation and minimum token permissions.

Safety and limits

  • No repository cloning, source-code execution, dependency installation, or writes to upstream projects.
  • No network calls are made in CI.
  • GitHub metadata does not prove safety, maintenance quality, government affiliation, endorsement, or license permission.
  • Review generated JSON before making any catalog edits.

Validation

GitHub Actions run 41553938622 completed successfully on Python 3.11, 3.12, and 3.13. Catalog validator tests and the full local catalog audit passed.

@HuffmanMainNode
HuffmanMainNode marked this pull request as ready for review November 3, 2026 00:34
@HuffmanMainNode
HuffmanMainNode merged commit 3fe27fe into main Nov 3, 2026
3 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.

1 participant