diff --git a/schema/validator.go b/schema/validator.go index 8bdd1cf3a..75a5e0ef2 100644 --- a/schema/validator.go +++ b/schema/validator.go @@ -256,7 +256,7 @@ func checkPlatform(OS string, Architecture string) { func validateArtifact(r io.Reader) error { header := v1.Artifact{} - buf, err := ioutil.ReadAll(r) + buf, err := io.ReadAll(r) if err != nil { return errors.Wrapf(err, "error reading the io stream") }