Skip to content

AST-196419 - Apply scanner switches, severity threshold and secrets to Claude and Copilot (AST-196419,AST-197258) - #1626

Open
cx-rahul-pidde wants to merge 8 commits into
stagingfrom
feature/secret-for-cli-agents
Open

cx-rahul-pidde wants to merge 8 commits into
stagingfrom
feature/secret-for-cli-agents

Conversation

@cx-rahul-pidde

@cx-rahul-pidde cx-rahul-pidde commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Changes

  • Secret detection, the scanner switches (cx_*_scanner_enabled) and cx_severity_threshold from ~/.checkmarx/cx-onboarding.properties now apply to Claude Code and GitHub Copilot (and Droid/Windsurf).
  • Cursor, Gemini and Codex stay excluded for now via switchesApply / secretsApply in internal/commands/agenthooks/cx/hooks.go; they keep scanning with ASCA / KICS / SCA at any severity and run no secret detection. Their plugins don't yet ship the secrets skill.
  • Claude moved out of the exclusion list; tests updated (TestSwitches_HonouredForClaudeAndCopilot, TestSwitchesApply_ExcludesThreeAgents).

Notes

Testing

  • go test ./internal/commands/agenthooks/... passes.
  • Manual run of cx hooks claude-pre-file-write with switches off/on and each threshold still to do.

🤖 Generated with Claude Code

Claude, Cursor, Gemini and Codex were held back by switchesApply(): they
ignored cx_*_scanner_enabled and cx_severity_threshold in
~/.checkmarx/cx-onboarding.properties and skipped secret detection
entirely. Remove the gate so every agent honours the file and runs the
secrets guardrail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Copilot

Restore the switchesApply/secretsApply allow-list for Cursor, Gemini and
Codex, whose plugins do not yet ship the secrets skill or handle the
settings. Claude Code and GitHub Copilot (and Droid/Windsurf) keep
honouring secret detection, scanner switches and cx_severity_threshold.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@cx-rahul-pidde cx-rahul-pidde changed the title AST-0000 Apply scanner switches, severity threshold and secrets to all agents AST-0000 Apply scanner switches, severity threshold and secrets to Claude and Copilot Nov 24, 2026
@cx-rahul-pidde
cx-rahul-pidde changed the base branch from main to staging November 25, 2026 05:15
cx-rahul-pidde and others added 2 commits December 1, 2026 14:37
A blank, missing or invalid cx_severity_threshold previously meant low
(nothing filtered). Default it to high instead for every agent
switchesApply covers (Claude, Copilot, Droid, Windsurf), so only
high/critical findings still block until the developer configures a
lower threshold. An explicit value in the properties file always wins.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@cx-rahul-pidde cx-rahul-pidde changed the title AST-0000 Apply scanner switches, severity threshold and secrets to Claude and Copilot Apply scanner switches, severity threshold and secrets to Claude and Copilot (AST-196419,AST-197258) Dec 2, 2026
@cx-rahul-pidde cx-rahul-pidde changed the title Apply scanner switches, severity threshold and secrets to Claude and Copilot (AST-196419,AST-197258) AST-196419 - Apply scanner switches, severity threshold and secrets to Claude and Copilot (AST-196419,AST-197258) Dec 2, 2026
cx-rahul-pidde and others added 3 commits December 2, 2026 11:54

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.

3 participants