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

@@ -8,7 +8,6 @@ package bundle
import (
"encoding/pem"
"fmt"
"io/ioutil"
"os"
"github.com/open-policy-agent/opa/internal/jwx/jwa"
@@ -115,7 +114,7 @@ func (s *SigningConfig) GetPrivateKey() (interface{}, error) {
var priv string
if _, err := os.Stat(s.Key); err == nil {
bs, err := ioutil.ReadFile(s.Key)
bs, err := os.ReadFile(s.Key)
if err != nil {
return nil, err
}
@@ -133,7 +132,7 @@ func (s *SigningConfig) GetPrivateKey() (interface{}, error) {
func (s *SigningConfig) GetClaims() (map[string]interface{}, error) {
var claims map[string]interface{}
bs, err := ioutil.ReadFile(s.ClaimsPath)
bs, err := os.ReadFile(s.ClaimsPath)
if err != nil {
return claims, err
}