diff --git a/pkg/iac/scanners/helm/parser/parser_test.go b/pkg/iac/scanners/helm/parser/parser_test.go index b9a58238280b..9c8b05ce7696 100644 --- a/pkg/iac/scanners/helm/parser/parser_test.go +++ b/pkg/iac/scanners/helm/parser/parser_test.go @@ -29,6 +29,8 @@ func TestParseFS(t *testing.T) { // mkdir -p dir && cp -p Chart.yaml dir/Chart.yaml // mkdir -p sym-to-file && ln -s ../Chart.yaml sym-to-file/Chart.yaml // ln -s dir sym-to-dir + // mkdir rec-sym && touch rec-sym/Chart.yaml + // ln -s . ./rec-sym/a // cd .. && tar -czvf chart.tar.gz chart && rm -rf chart p, err := New(".") require.NoError(t, err) @@ -39,6 +41,8 @@ func TestParseFS(t *testing.T) { expectedFiles := []string{ "chart/Chart.yaml", "chart/dir/Chart.yaml", + "chart/rec-sym/Chart.yaml", + "chart/rec-sym/a/Chart.yaml", "chart/sym-to-dir/Chart.yaml", "chart/sym-to-file/Chart.yaml", } diff --git a/pkg/iac/scanners/helm/parser/testdata/archive-with-symlinks/chart.tar.gz b/pkg/iac/scanners/helm/parser/testdata/archive-with-symlinks/chart.tar.gz index 4e9ee88c4789..a3183710c17f 100644 Binary files a/pkg/iac/scanners/helm/parser/testdata/archive-with-symlinks/chart.tar.gz and b/pkg/iac/scanners/helm/parser/testdata/archive-with-symlinks/chart.tar.gz differ