Skip to content

Commit b559e6c

Browse files
committed
fix the default show message for dangerous pattern
1 parent a84097b commit b559e6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/codewhispererChat/tools/executeBash.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ export class ExecuteBash {
192192
Array.from(dangerousPatterns).some((pattern) => arg.includes(pattern))
193193
)
194194
) {
195-
return { requiresAcceptance: true, warning: highRiskCommandWarningMessage }
195+
// put the mutation message for dangerous pattern command for now, will update as long as finalized with appsec team
196+
return { requiresAcceptance: true, warning: mutateCommandWarningMessage }
196197
}
197198
continue
198199
default:

0 commit comments

Comments
 (0)