File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -182,10 +182,22 @@ func (c *ConfigType) Tools() map[string]*plugins.ToolInfo {
182182 return c .tools
183183}
184184
185+ // toolNameAliases maps legacy tool names to their current equivalents
186+ var toolNameAliases = map [string ]string {
187+ "semgrep" : "opengrep" ,
188+ }
189+
185190func (c * ConfigType ) AddTools (configs []plugins.ToolConfig ) error {
186191 // Get the plugin manager to access tool configurations
187192 pluginManager := plugins .GetPluginManager ()
188193
194+ // Resolve any legacy tool name aliases
195+ for i := range configs {
196+ if alias , ok := toolNameAliases [configs [i ].Name ]; ok {
197+ configs [i ].Name = alias
198+ }
199+ }
200+
189201 // Ensure all required runtimes are present before processing tools
190202 for _ , toolConfig := range configs {
191203 // Get the tool's plugin configuration to access runtime info
You can’t perform that action at this time.
0 commit comments