Skip to content

refactor(security): remove unused fallback path from scanner base class - #7583

Merged
dan-petty merged 1 commit into
mainfrom
refactor/2713-remove-scanner-fallback
Nov 28, 2026
Merged

dan-petty merged 1 commit into
mainfrom
refactor/2713-remove-scanner-fallback

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Issue #2713 notes that after #2427, every scanner in the registry runs its pinned binary and no scanner overrides fallback_scan or sets has_builtin_patterns = True. However, BaseSecurityScanner in src/devops_cli/security/base.py, eleven scanner adapters, CONST_SCAN_STATUS_PRECEDENCE, security/pipeline.py, ai/review/pipeline.py, ai/review/runner.py, ai/review/profile.py, docs/SDLC.md, src/devops_cli/ai/knowledge_base/devops_cli/tasks/ai_code_review.md, and tests still carry the dead fallback machinery and the unreachable "built-in patterns" status.

Closes #2713

Change: openspec/changes/archive/2026-11-28-2713-remove-scanner-fallback/

@dan-petty dan-petty added type/refactor Type refactor: a new structure, same behavior scope/security Security linters (trivy, bandit, gitleaks, kubeconform) and Vault labels Nov 28, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: d338fb81fe4b44a104cdd3d01e8db725f4472dd6

Check Conclusion Link
Tests & Coverage failure run
devops-cli success run
zizmor success run
trivy-config success run
Trivy neutral run
Changed-Test Independence success run
Plan Check skipped run
CodeQL success run
Tests on Main skipped run
Test Job Duration skipped run
Fail-to-Pass Check skipped run
Dependency Freshness skipped run
Tests & Coverage (shard 6 of 6) success run
Changed-Test Independence (run 1 of 3) success run
Tests & Coverage (shard 4 of 6) success run
Design Tokens success run
Service Image success run
Changed-Test Independence (run 2 of 3) success run
Tests & Coverage (shard 1 of 6) success run
Static Analysis success run
Tests & Coverage (shard 3 of 6) failure run
Changed-Test Independence (run 3 of 3) success run
Tests & Coverage (shard 5 of 6) success run
Tests & Coverage (shard 2 of 6) success run
Docs Site Build success run
Runner Image success run
Semantic PR title success run
Analyze (python) success run
Analyze (actions) success run

Skipped check: Trivy
Skipped check: Plan Check
Skipped check: Tests on Main
Skipped check: Test Job Duration
Skipped check: Fail-to-Pass Check
Skipped check: Dependency Freshness

@dan-petty

Copy link
Copy Markdown
Owner Author

All checks except Tests & Coverage (shard 3 of 6) passed (27/29). Shard 3 failed solely on the pre-existing main clock issue in tests/roadmap/test_roadmap_alternatives.py::test_the_row_sends_the_gauges_for_a_round_with_every_check_current (#7582). Leaving PR #7583 in draft until #7582 lands on main and this PR can be updated.

@dan-petty
dan-petty force-pushed the refactor/2713-remove-scanner-fallback branch from d338fb8 to 7ef606c Compare November 28, 2026 14:10
@dan-petty
dan-petty marked this pull request as ready for review November 28, 2026 14:17
@dan-petty
dan-petty merged commit d5acca8 into main Nov 28, 2026
29 checks passed
@dan-petty
dan-petty deleted the refactor/2713-remove-scanner-fallback branch November 28, 2026 14:20
dan-petty-release Bot added a commit that referenced this pull request Nov 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.234.0](v0.233.0...v0.234.0)
(2026-11-28)


### Features

* **roadmap:** add pipeline dashboard and chart deferred Service metrics
([#7590](#7590))
([1b74e1b](1b74e1b))
* **roadmap:** measure the precision of the review unit
([#5522](#5522))
([#7588](#7588))
([d98fd36](d98fd36))
* **service:** webhook events wake the lanes of their jobs
([#7587](#7587))
([c656123](c656123)),
closes [#5555](#5555)


### Bug Fixes

* **roadmap:** remove cached issues when a repository becomes private
([#7581](#7581))
([88f9fcc](88f9fcc))


### Code Refactoring

* **review:** remove dead review conventions plumbing
([#7580](#7580))
([57f9f0e](57f9f0e))
* **roadmap:** split roadmap commands by kind
([#7586](#7586))
([1c232c7](1c232c7))
* **security:** remove unused fallback path from scanner base class
([#7583](#7583))
([d5acca8](d5acca8))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/security Security linters (trivy, bandit, gitleaks, kubeconform) and Vault type/refactor Type refactor: a new structure, same behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(security): Remove the unused fallback path from the scanner base class

1 participant