diff --git a/pkg/sca/sca.go b/pkg/sca/sca.go index 1e59b51d1..6692dc7cc 100644 --- a/pkg/sca/sca.go +++ b/pkg/sca/sca.go @@ -577,8 +577,8 @@ func generateRubyDeps(ctx context.Context, hdl SCAHandle, generated *config.Depe } } - log.Infof(" found ruby gem, generating ruby-%s dependency", rubyGemVer) - generated.Runtime = append(generated.Runtime, fmt.Sprintf("ruby-%s", rubyGemVer)) + log.Infof(" found ruby gem, generating ruby-%s-base dependency", rubyGemVer) + generated.Runtime = append(generated.Runtime, fmt.Sprintf("ruby-%s-base", rubyGemVer)) return nil } diff --git a/pkg/sca/sca_test.go b/pkg/sca/sca_test.go index 5fada7497..22f42c808 100644 --- a/pkg/sca/sca_test.go +++ b/pkg/sca/sca_test.go @@ -210,7 +210,7 @@ func TestRubySca(t *testing.T) { t.Fatal(err) } - want := config.Dependencies{Runtime: []string{"ruby-3.2"}} + want := config.Dependencies{Runtime: []string{"ruby-3.2-base"}} if diff := cmp.Diff(want, got); diff != "" { t.Errorf("Analyze(): (-want, +got):\n%s", diff)