Repository navigation
feat: explicit public/internal/private audit profiles and portable image warnings - #137
Conversation
andy-zen-dev
left a comment
There was a problem hiding this comment.
Reviewed exact head e2bafbd026664105635d60cf2582a3c9e5224480 against Issue #75, the full eight-file diff, surrounding tools/repo_audit.py parsing/inventory/serialization, action.yml, regression tests, AGENTS.md, CONTRIBUTING.md and the existing review timeline. APPROVE for the bounded offline audit change.
The explicit public/internal/private profile is validated in both CLI and Action inputs; the default profile retains the existing report shape and rendering when findings are unchanged. Private/internal adjust only the missing-license guidance and add the README owner/contact heuristic; raw GitHub-hosted Markdown/reference/HTML image URLs are warned about in all profiles. Image checks reuse masked Markdown and the existing HTML parser without network access or target-code execution. Tests cover the profiles, default behavior, representative image forms, exclusions and invalid Action input. The pinned v0.2.0 Action compatibility limitation is explicitly documented.
CI on this head: workflow run 39987590146 success, including Python 3.11, Python 3.14, Windows Python 3.14, Ubuntu/Windows Action self-tests and Ruff. Independent local execution was not performed; the checks do not prove contact-route reachability or complete Markdown renderer equivalence, which the docs correctly do not claim. No merge-blocking finding in this change.
Reader problem
The offline audit assumes public open-source licensing, while internal and private repositories need an owner/contact route and often use company-specific terms instead of an OSS license. README images pointing to GitHub raw endpoints can break in authenticated views, clones and mirrors.
Implementation
--profile public|internal|privatetotools/repo_audit.py(defaultpublic).license.missingto information with a company-terms remedy, and warn when no explicit README owner/contact/support section is found.profileas an additive schema-1 JSON field only for opt-in internal/private profiles. Default public text and JSON remain byte-identical for unchanged findings.audit-profileinput; extend Linux/Windows self-tests, Python regressions and documentation.Compatibility and limits
Verification
Code and test changes are committed on the PR branch. Full local checkout/tests not run: the container cannot resolve github.com. Review the fresh GitHub CI and exact diff before acceptance.
Closes #75