Skip to content

Add configurable Severity Threshold for Dev Assist realtime scanners (AST-197154) - #297

Open
cx-aniket-shinde wants to merge 1 commit into
mainfrom
feature/severity-threshold-AST-195881
Open

cx-aniket-shinde wants to merge 1 commit into
mainfrom
feature/severity-threshold-AST-195881

Conversation

@cx-aniket-shinde

Copy link
Copy Markdown
Collaborator

Summary

Adds a configurable Severity Threshold for the Dev Assist realtime scanners (epic AST-195881, task AST-197154), mirroring the JetBrains implementation (ast-jetbrains-plugin#480).

  • New preference below the container management tool: Critical / High / Medium / Low / Info, default High (shows Critical + High). Value is passed to the CLI as --severity-threshold for OSS, Secrets, IaC, Containers and ASCA. Malicious / OK / Unknown are never filtered (the CLI keeps them).
  • Changing the threshold rescans: OSS reuses the existing scan-all-manifests flow; other scanners rescan IDE-open files plus files that previously had findings. Findings no longer matching are removed and show as cleared (green gutter).
  • Ignored findings are filtered in the UI by threshold only; entries are never deleted from the ignore file. Ignore-upkeep scans stay unfiltered (including ASCA).
  • Uses the Java wrapper dev build from wrapper main (ast-cli-java-wrapper-dev.jar, bundling the CLI built from ast-cli main) in place of 2.4.33. Existing wrapper overloads are unchanged.

Tests

  • Added SeverityThresholdTest and WrapperProviderTest overload tests; 35 tests pass in Tycho.
  • Manually verified in an Eclipse runtime: threshold change triggers rescan and findings refresh.

Notes

  • The jar is tracked in Git LFS and is larger than before (~167 MB) because it bundles the CLI.
  • The dev wrapper jar should be replaced by a released wrapper version once one includes the threshold overloads.

🤖 Generated with Claude Code

…(AST-197154)

- New Severity Threshold preference (Critical/High/Medium/Low/Info, default High)
  below the container management tool, passed to the CLI --severity-threshold flag
- Rescan open files and files that had findings when the threshold changes;
  OSS reuses the scan-all-manifests flow; cleared findings republish as empty
- Ignored findings are filtered in the UI by threshold only, never deleted
- Ignore-upkeep scans stay unfiltered (incl. ASCA) so ignore entries are kept
- Use java wrapper dev build from wrapper main (bundles CLI from ast-cli main)
- Unit tests for SeverityThreshold and WrapperProvider overloads

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@cx-aniket-shinde
cx-aniket-shinde requested a review from a team December 2, 2026 13:16

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant