Skip to content

Commit 02540e9

Browse files
committed
Specify expected format for tool results parsing
1 parent 0f4825e commit 02540e9

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/webviews/assets/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
function onButtonClicked() {
1313
let toolSelect = document.getElementById('toolSelect');
14-
let toolName = toolSelect.options[toolSelect.selectedIndex].text;
14+
let toolName = toolSelect.options[toolSelect.selectedIndex].value;
1515

1616
let selectedFile = document.getElementById('fileInput').files[0];
1717
readFile(selectedFile).then((fileContent) => {

src/webviews/importToolResultsWebview.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ export class ImportToolResultsWebview implements vscode.WebviewViewProvider {
8383
<p>Select tool:</p>
8484
<p>
8585
<select id="toolSelect">
86-
<option value="bandit">bandit</option>
87-
<option value="brakeman">brakeman</option>
88-
<option value="checkov">checkov</option>
89-
<option value="semgrep">semgrep</option>
86+
<option value="bandit">bandit (JSON)</option>
87+
<option value="brakeman">brakeman (JSON)</option>
88+
<option value="checkov">checkov (JSON)</option>
89+
<option value="semgrep">semgrep (JSON)</option>
9090
</select>
9191
</p>
9292
<p>Select file:</p>

0 commit comments

Comments
 (0)