Update dependencies (#5518)

This commit is contained in:
hongming
2023-02-12 23:09:20 +08:00
committed by GitHub
parent d3b35fb2da
commit a979342f56
1486 changed files with 126660 additions and 71128 deletions

View File

@@ -3,7 +3,6 @@ package keys
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"github.com/open-policy-agent/opa/util"
@@ -57,7 +56,7 @@ func (k *Config) validateAndInjectDefaults(id string) error {
func NewKeyConfig(key, alg, scope string) (*Config, error) {
var pubKey string
if _, err := os.Stat(key); err == nil {
bs, err := ioutil.ReadFile(key)
bs, err := os.ReadFile(key)
if err != nil {
return nil, err
}