Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/commands/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ func filterResultsByType(results *wrappers.ScanResultsCollection, excludedTypes
func filterScsResultsByAgent(results *wrappers.ScanResultsCollection, agent string) *wrappers.ScanResultsCollection {
unsupportedTypesByAgent := map[string][]string{
commonParams.VSCodeAgent: {commonParams.SCSScorecardType},
commonParams.JetbrainsAgent: {commonParams.SCSScorecardType, commonParams.SCSSecretDetectionType},
commonParams.JetbrainsAgent: {commonParams.SCSScorecardType},
commonParams.EclipseAgent: {commonParams.SCSScorecardType, commonParams.SCSSecretDetectionType},
commonParams.VisualStudioAgent: {commonParams.SCSScorecardType, commonParams.SCSSecretDetectionType},
}
Expand Down
6 changes: 3 additions & 3 deletions internal/commands/result_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func TestRunScsResultsShow_VSCode_AgentShouldNotShowScorecardResults(t *testing.
mock.SetScsMockVarsToDefault()
}

func TestRunScsResultsShow_Other_AgentsShouldNotShowScsResults(t *testing.T) {
func TestRunScsResultsShow_Jetbrains_AgentShouldShowScsResults(t *testing.T) {
clearFlags()
mock.HasScs = true
mock.ScsScanPartial = false
Expand All @@ -206,8 +206,8 @@ func TestRunScsResultsShow_Other_AgentsShouldNotShowScsResults(t *testing.T) {

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

removeFileBySuffix(t, printer.FormatJSON)
mock.SetScsMockVarsToDefault()
Expand Down
1 change: 1 addition & 0 deletions internal/commands/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,7 @@ func getResubmitConfiguration(scansWrapper wrappers.ScansWrapper, projectID, use

if len(allScansModel.Scans) > 0 {
scanModelResponse := allScansModel.Scans[0]
scanModelResponse.ReplaceMicroEnginesWithSCS()
config = scanModelResponse.Metadata.Configs
engines := scanModelResponse.Engines
// Check if there are no scan types sent using the flags, and use the latest scan engine types
Expand Down
Loading