From 6144f166315992c4cbfc35f6a8117e8955d64997 Mon Sep 17 00:00:00 2001 From: Anbraten Date: Tue, 28 Sep 2021 14:07:25 +0200 Subject: [PATCH] Remove unsupported pipeline file extension "yaml" (#373) Docs, `sanitizePath` and json-schema do not mention / support `.yaml` (only `.yml`) files so they should simply be ignored. --- server/shared/configFetcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/shared/configFetcher.go b/server/shared/configFetcher.go index d5c8a984f..be7694c34 100644 --- a/server/shared/configFetcher.go +++ b/server/shared/configFetcher.go @@ -119,7 +119,7 @@ func filterPipelineFiles(files []*remote.FileMeta) []*remote.FileMeta { var res []*remote.FileMeta for _, file := range files { - if strings.HasSuffix(file.Name, ".yml") || strings.HasSuffix(file.Name, ".yaml") { + if strings.HasSuffix(file.Name, ".yml") { res = append(res, file) } }