From 7c91ef827de42a186da63d3148570b719aed17f8 Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani Date: Mon, 27 Feb 2023 02:11:47 +0000 Subject: [PATCH] feat(insecure): ensure builds are secure by default BREAKING CHANGE: `insecure:` directive is now `true` by default. Previously, it was `false`. Fixes issue #311 Signed-off-by: Ramkumar Chinchani --- pkg/types/imagesource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/types/imagesource.go b/pkg/types/imagesource.go index b3565c603..06ed746d9 100644 --- a/pkg/types/imagesource.go +++ b/pkg/types/imagesource.go @@ -50,7 +50,7 @@ type ImageSource struct { } func NewImageSource(containersImageString string) (*ImageSource, error) { - ret := &ImageSource{} + ret := &ImageSource{Insecure: false} if strings.HasPrefix(containersImageString, "oci:") { ret.Type = OCILayer ret.Url = containersImageString[len("oci:"):]