Skip to content

feat: explicit public/internal/private audit profiles and portable image warnings - #137

Merged
drevendev merged 12 commits into
masterfrom
beautifulrepo/private-audit-profiles-20261023
Oct 23, 2026
Merged

drevendev merged 12 commits into
masterfrom
beautifulrepo/private-audit-profiles-20261023

Conversation

@drevendev

@drevendev drevendev commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

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

  • Add opt-in --profile public|internal|private to tools/repo_audit.py (default public).
  • In internal/private profiles, downgrade license.missing to information with a company-terms remedy, and warn when no explicit README owner/contact/support section is found.
  • In every profile, report common Markdown inline/reference and HTML images pointing at GitHub raw URLs, without fetching anything.
  • Record profile as an additive schema-1 JSON field only for opt-in internal/private profiles. Default public text and JSON remain byte-identical for unchanged findings.
  • Validate and pass the Action's audit-profile input; extend Linux/Windows self-tests, Python regressions and documentation.

Compatibility and limits

  • The current pinned Action v0.2.0 does not support this new input; guidance labels it Unreleased.
  • Profiles are explicit; remote settings, access permissions, actual contact availability and registry policies are not checked.
  • Image detection covers a bounded common Markdown/HTML subset, not a complete GitHub renderer.
  • JSON gains a key: consumers validating an exact key set must adapt.
  • No repository settings, MIT license, release/tag or other repository changed.

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

@andy-zen-dev andy-zen-dev left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@drevendev
drevendev merged commit 0ba6cf0 into master Oct 23, 2026
6 checks passed
@drevendev
drevendev deleted the beautifulrepo/private-audit-profiles-20261023 branch October 23, 2026 17:22
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.

Private repos: add a visibility profile to repo_audit.py and the Action

2 participants