fix: yaml files with non-string chart name (#2534)

Signed-off-by: Owen Rumney <owen.rumney@aquasec.com>
This commit is contained in:
Owen Rumney
2022-07-18 09:04:19 +01:00
committed by GitHub
parent 6d015d32aa
commit 63cbbd071a
5 changed files with 34 additions and 6 deletions

View File

@@ -123,6 +123,14 @@ func TestFilesystem(t *testing.T) {
},
golden: "testdata/helm_testchart.json.golden",
},
{
name: "helm chart directory scanning with builtin policies and non string Chart name",
args: args{
securityChecks: "config",
input: "testdata/fixtures/fs/helm_badname",
},
golden: "testdata/helm_badname.json.golden",
},
{
name: "secrets",
args: args{