Skip to content

Commit c570a67

Browse files
Support SCS Secret Detection results for Jetbrains agent in JSON report
1 parent d6cc44a commit c570a67

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/commands/result.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ func filterResultsByType(results *wrappers.ScanResultsCollection, excludedTypes
11581158
func filterScsResultsByAgent(results *wrappers.ScanResultsCollection, agent string) *wrappers.ScanResultsCollection {
11591159
unsupportedTypesByAgent := map[string][]string{
11601160
commonParams.VSCodeAgent: {commonParams.SCSScorecardType},
1161-
commonParams.JetbrainsAgent: {commonParams.SCSScorecardType, commonParams.SCSSecretDetectionType},
1161+
commonParams.JetbrainsAgent: {commonParams.SCSScorecardType},
11621162
commonParams.EclipseAgent: {commonParams.SCSScorecardType, commonParams.SCSSecretDetectionType},
11631163
commonParams.VisualStudioAgent: {commonParams.SCSScorecardType, commonParams.SCSSecretDetectionType},
11641164
}

internal/commands/result_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ func TestRunScsResultsShow_Other_AgentsShouldNotShowScsResults(t *testing.T) {
206206

207207
execCmdNilAssertion(t, "results", "show", "--scan-id", "SCS_ONLY", "--report-format", "json", "--agent", params.JetbrainsAgent)
208208
assertTypePresentJSON(t, params.SCSScorecardType, 0)
209-
assertTypePresentJSON(t, params.SCSSecretDetectionType, 0)
210-
assertTotalCountJSON(t, 0)
209+
assertTypePresentJSON(t, params.SCSSecretDetectionType, 2)
210+
assertTotalCountJSON(t, 2)
211211

212212
removeFileBySuffix(t, printer.FormatJSON)
213213
mock.SetScsMockVarsToDefault()

0 commit comments

Comments
 (0)