Skip to content
This repository was archived by the owner on Jun 10, 2026. It is now read-only.

Add --public and --name repository filters#14

Merged
timgentry merged 8 commits into
mainfrom
feature/public-repo-filter
Jun 10, 2026
Merged

Add --public and --name repository filters#14
timgentry merged 8 commits into
mainfrom
feature/public-repo-filter

Conversation

@timgentry

Copy link
Copy Markdown
Contributor

Summary

Extends the audit_github exec command with two new repository filters and tidies up the existing ones:

  • --public — restrict the audit to public repositories only (rejects private repos).
  • --name foo bar — filter to one or more repositories by name; implies the whole organisation, so --all isn't needed alongside it.
  • Renamed --all-repos--all for consistency with the other flags.
  • Refactored the inline repository filtering into discrete, single-purpose Thor steps (filter_all_if_specified, filter_by_name_array_if_specified, filter_by_topic_if_specified, filter_by_visibility_if_specified).
  • Updated the README and CHANGELOG to document the new flags.

Why merge this here

This work has already been rolled into the main way_of_working gem (v2.1.0), where the GitHub audit now lives as a built-in, opt-in feature. This repository is being archived.

These changes are being merged for completeness, so main reflects the final state of the standalone gem before it is retired. No further development is expected here.

Testing

bundle exec rake test — 27 runs, 0 failures, 0 errors.

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

🦙 MegaLinter status: ❌ ERROR

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 3 0 0 0.02s
✅ BASH bash-exec 1 0 0 0.01s
✅ BASH shellcheck 1 0 0 0.01s
✅ BASH shfmt 1 0 0 0.01s
❌ COPYPASTE jscpd yes 3 no 1.47s
✅ JSON jsonlint 1 0 0 0.16s
✅ JSON v8r 1 0 0 2.31s
⚠️ MARKDOWN markdownlint 2 1 0 1.56s
❌ MARKDOWN markdown-link-check 2 1 0 4.73s
✅ MARKDOWN markdown-table-formatter 2 0 0 0.27s
✅ REPOSITORY checkov yes no no 17.1s
✅ REPOSITORY devskim yes no no 1.45s
✅ REPOSITORY dustilock yes no no 0.01s
✅ REPOSITORY gitleaks yes no no 0.14s
✅ REPOSITORY git_diff yes no no 0.05s
❌ REPOSITORY grype yes 42 no 42.51s
❌ REPOSITORY kics yes 2 no 0.89s
✅ REPOSITORY secretlint yes no no 0.55s
✅ REPOSITORY syft yes no no 1.63s
❌ REPOSITORY trivy yes 1 no 12.25s
✅ REPOSITORY trivy-sbom yes no no 1.28s
✅ REPOSITORY trufflehog yes no no 4.45s
❌ SPELL lychee 10 4 0 0.86s
✅ YAML v8r 6 0 0 4.81s
✅ YAML yamllint 6 0 0 0.36s

See detailed report in MegaLinter reports

You could have the same capabilities but better runtime performances if you use a MegaLinter flavor:

MegaLinter is graciously provided by OX Security

alex flagged "just" as potentially insensitive; replace with "only".

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@timgentry timgentry requested a review from shilpigoeldev June 10, 2026 12:10
@timgentry timgentry merged commit 8607365 into main Jun 10, 2026
4 of 5 checks passed
@timgentry timgentry deleted the feature/public-repo-filter branch June 10, 2026 12:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants