Skip to content

Commit

Permalink
feat(insecure): ensure builds are secure by default
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `insecure:` directive is now `true` by default.
Previously, it was `false`.

Fixes issue #311

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
  • Loading branch information
rchincha committed Feb 27, 2023
1 parent 7174ee3 commit 7c91ef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/types/imagesource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:"):]
Expand Down

0 comments on commit 7c91ef8

Please sign in to comment.