Repository navigation
feat: add archived repository filtering - #67
Merged
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
gubraun
requested review from
adrienpessu and
felickz
and
a balanced review from Copilot
November 6, 2026 17:52
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
With a populated SBOM cache, organization sync using --exclude-archived still exposes cached archived SBOMs to searches and malware matching because excluded entries remain in the returned collection.
1 open issue
What changed in this PR
Adds opt-in archived-repository filtering to the SBOM collector, preserving the existing default of including archived repositories.
Changes:
- Wires
--exclude-archivedthrough the CLI to organization repository listings. - Adds local mock API tests for including and excluding archived repositories.
- Updates the test command and user documentation.
| File | Description |
|---|---|
| TESTING.md | Documents the archived-filtering integration tests. |
| src/sbomCollector.ts | Adds the option and filters archived repositories during listing. |
| src/exclude-archived.test.ts | Tests collection with filtering enabled and disabled. |
| src/cli.ts | Defines and forwards --exclude-archived. |
| README.md | Documents the new CLI flag. |
| package.json | Includes the new integration tests in npm test. |
| CHANGELOG.md | Records optional archived-repository filtering. |
Review effort: Balanced
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
--exclude-archivedCLI option, defaulting tofalseso current behavior is unchanged.node:testintegration test using a local mock GitHub API, and update the testing guide, README, and changelog.This PR supersedes #42, which introduced the same feature. Thanks to @densfox for the original implementation and for bringing the archived-repository filtering use case forward.
Validation
npm run buildnpm test(18 tests passed, including both archived-filtering cases)npm run lintThe local API test covers the collector flow without credentials. The documented end-to-end check against a real test organization and Enterprise was not run.