Repository navigation
fix(security): enforce package review on Debian/Ubuntu and Homebrew installs + fix CodeQL workflow anchor - #1201
Merged
Conversation
Contributor
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
PyRo1121
force-pushed
the
fix/install-security-debian-homebrew-codeql
branch
9 times, most recently
from
December 1, 2026 21:30
c2aafb5 to
8ef84eb
Compare
PyRo1121
force-pushed
the
fix/install-security-debian-homebrew-codeql
branch
from
December 1, 2026 21:59
8ef84eb to
1557b80
Compare
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
Closes the two OS package manager install security gaps and resolves CodeQL alert #169:
src/cli/packages/install/debian.rs):enforce_install_policyper top-level package, which skippedscanner.assess_packagesunder the defaultAdvisoryRequirement::Optionalpolicy and did not inspect transitive APT dependencies.parse_apt_simulation_inventoryto parseInst <name> [<old>] (<version> ... [<arch>])lines fromapt-get -s install --(offloaded viaspawn_blocking) and routes the full resolved transaction inventory throughpackage_review::review_async(batched viaVulnerabilityScanner::new(), surfacing explicit coverage gaps if simulation is unavailable).src/cli/packages/install/generic.rs):SecurityOrigin::Unknownfor Homebrew packages (causingassess_packagesto skip advisory lookup even under strict policy) and skipped under defaultOptionalpolicy.Backend::MacOS(Homebrew) toSecurityOrigin::DistributionPackageand routes live installs throughpackage_review::review_async..github/workflows/ci.yml):&native-linux-env/*native-linux-envYAML anchor inci.ymlso CodeQL's GitHub Actions parser (actions/syntax-error) parsesci.ymlcleanly with zero syntax warnings.Verification
cli::packages::install::unit tests in Ubuntu 24.04 WSL (Rust 1.95.0,--no-default-features): 14 passed, 0 failed, 0 warnings (includinghomebrew_uses_distribution_origin_for_advisory_screening).parse_apt_simulation_inventoryagainst realapt-get -s install -- jqoutput on Ubuntu 24.04 WSL (Inst libonig5,Inst libjq1,Inst jq, plus upgrade[old] (new)and:archunit test coverage).Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.