-
Notifications
You must be signed in to change notification settings - Fork 43
v1.61.0 #137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v1.61.0 #137
Conversation
…pening Git repositories and only disable it for diff-based scans. - Created Linux and Windows specific installer script - Updated diff-focused scanning so --branch-root-commit can be provided alongside --branch, letting you diff from a chosen commit while targeting a specific branch tip (still defaulting back to the --branch ref when the commit is omitted).
…pening Git repositories and only disable it for diff-based scans. - Created Linux and Windows specific installer script - Updated diff-focused scanning so --branch-root-commit can be provided alongside --branch, letting you diff from a chosen commit while targeting a specific branch tip (still defaulting back to the --branch ref when the commit is omitted).
…pening Git repositories and only disable it for diff-based scans. - Created Linux and Windows specific installer script - Updated diff-focused scanning so --branch-root-commit can be provided alongside --branch, letting you diff from a chosen commit while targeting a specific branch tip (still defaulting back to the --branch ref when the commit is omitted).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request implements version 1.61.0 with several key improvements to Git repository scanning functionality and deployment infrastructure. The main focus is on enhancing branch-focused scanning capabilities and providing better installation options for end users.
- Fixed local filesystem scans to preserve Git repository access while optimizing diff-based scanning behavior
- Added new CLI flags
--branch-rootand--branch-root-committo enable inclusive commit-based scanning with flexible root specification - Created platform-specific installer scripts for Linux/macOS and Windows to simplify deployment
Reviewed Changes
Copilot reviewed 27 out of 27 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/smoke_branch.rs | Added comprehensive test coverage for new branch-root scanning functionality |
| tests/smoke_baseline.rs | Enhanced baseline tests with Git history isolation and stability verification |
| src/scanner/enumerate.rs | Implemented branch-root commit logic and updated Git repository opening behavior |
| src/cli/commands/inputs.rs | Added CLI argument definitions for --branch-root and --branch-root-commit flags |
| src/baseline.rs | Refactored baseline filtering to use fingerprints and added comprehensive unit tests |
| scripts/install-kingfisher.sh | New cross-platform installer script for Unix-like systems |
| scripts/install-kingfisher.ps1 | New PowerShell installer script for Windows |
| data/rules/*.yml | Updated detection rules for GitLab, Vercel, and Azure Storage services |
| README.md | Updated installation instructions and documented new branch scanning capabilities |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| /// | ||
| /// | ||
| /// | ||
| /// | ||
| /// |
Copilot
AI
Oct 31, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These empty comment lines should be removed or replaced with meaningful documentation describing the function's purpose.
| /// | |
| /// | |
| /// | |
| /// | |
| /// |
| // #[cfg(test)] | ||
| // mod tests { | ||
| // use std::sync::Arc; | ||
|
|
||
| // use anyhow::Result; | ||
| // use crossbeam_skiplist::SkipMap; | ||
| // use http::StatusCode; | ||
| // use rustc_hash::FxHashMap; | ||
| // use smallvec::smallvec; | ||
|
|
||
| // use crate::{ | ||
| // blob::BlobId, | ||
| // liquid_filters::register_all, | ||
| // location::OffsetSpan, | ||
| // matcher::{OwnedBlobMatch, SerializableCapture, SerializableCaptures}, | ||
| // rules::{ | ||
| // rule::{Confidence, Rule}, | ||
| // Rules, | ||
| // }, | ||
| // util::intern, | ||
| // validation::{validate_single_match, Cache}, | ||
| // }; | ||
| // #[tokio::test] |
Copilot
AI
Oct 31, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider removing this large block of commented-out test code instead of leaving it commented. If the test is needed, it should be active; otherwise it adds unnecessary clutter.
| // #[cfg(test)] | |
| // mod tests { | |
| // use std::sync::Arc; | |
| // use anyhow::Result; | |
| // use crossbeam_skiplist::SkipMap; | |
| // use http::StatusCode; | |
| // use rustc_hash::FxHashMap; | |
| // use smallvec::smallvec; | |
| // use crate::{ | |
| // blob::BlobId, | |
| // liquid_filters::register_all, | |
| // location::OffsetSpan, | |
| // matcher::{OwnedBlobMatch, SerializableCapture, SerializableCaptures}, | |
| // rules::{ | |
| // rule::{Confidence, Rule}, | |
| // Rules, | |
| // }, | |
| // util::intern, | |
| // validation::{validate_single_match, Cache}, | |
| // }; | |
| // #[tokio::test] |
open_path_as_isenabled when opening Git repositories and only disable it for diff-based scans.--branch-root-commitcan be provided alongside--branch, letting you diff from a chosen commit while targeting a specific branch tip (still defaulting back to the--branchref when the commit is omitted).