diff --git a/pkg/libartifact/store/store.go b/pkg/libartifact/store/store.go index 7d3cf9e8d4..904912c96d 100644 --- a/pkg/libartifact/store/store.go +++ b/pkg/libartifact/store/store.go @@ -47,6 +47,10 @@ func NewArtifactStore(storePath string, sc *types.SystemContext) (*ArtifactStore if storePath == "" { return nil, errors.New("store path cannot be empty") } + if !filepath.IsAbs(storePath) { + return nil, fmt.Errorf("store path %q must be absolute", storePath) + } + logrus.Debugf("Using artifact store path: %s", storePath) artifactStore := &ArtifactStore{