Skip to content

Commit

Permalink
chore: enforce that r.Auth.Basic is nil when ecr auth is used
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-ibra committed Aug 19, 2024
1 parent d8c7f67 commit 9e28ff0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/services/validator/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func configureAuth(r *plug.OciRegistryRule) error {
if r.Auth.ECR == nil {
r.Auth.ECR = &plug.ECRAuth{}
}
r.Auth.Basic = nil

accessKeyId, secretAccessKey, sessionToken, err := readAwsCreds(r.Auth.ECR.AccessKeyID, r.Auth.ECR.SecretAccessKey, r.Auth.ECR.SessionToken)
if err != nil {
Expand Down

0 comments on commit 9e28ff0

Please sign in to comment.