File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
packages/core/src/codewhispererChat/tools Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ export enum CommandCategory {
16
16
Destructive ,
17
17
}
18
18
19
- export const dangerousPatterns = new Set ( [ '<(' , '$(' , '`' ] )
20
19
export const splitOperators = new Set ( [ '|' , '&&' , '||' , '>' ] )
21
20
export const splitOperatorsArray = Array . from ( splitOperators )
22
21
export const commandCategories = new Map < string , CommandCategory > ( [
@@ -187,14 +186,6 @@ export class ExecuteBash {
187
186
case CommandCategory . Mutate :
188
187
return { requiresAcceptance : true , warning : mutateCommandWarningMessage }
189
188
case CommandCategory . ReadOnly :
190
- if (
191
- cmdArgs . some ( ( arg ) =>
192
- Array . from ( dangerousPatterns ) . some ( ( pattern ) => arg . includes ( pattern ) )
193
- )
194
- ) {
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 }
197
- }
198
189
continue
199
190
default :
200
191
return { requiresAcceptance : true }
You can’t perform that action at this time.
0 commit comments