mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 23:26:39 -08:00
change var name : GCRCredPath -> GcpCredPath
This commit is contained in:
@@ -48,7 +48,7 @@ type DockerOption struct {
|
||||
AuthURL string
|
||||
UserName string
|
||||
Password string
|
||||
GCRCredPath string
|
||||
GcpCredPath string
|
||||
AwsAccessKey string
|
||||
AwsSecretKey string
|
||||
AwsRegion string
|
||||
|
||||
@@ -32,8 +32,8 @@ func (g *GCR) CheckOptions(domain string, d docker.DockerOption) error {
|
||||
}
|
||||
|
||||
g.Auth = types.AuthConfig{}
|
||||
if d.GCRCredPath != "" {
|
||||
g.Store = store.NewGCRCredStore(d.GCRCredPath)
|
||||
if d.GcpCredPath != "" {
|
||||
g.Store = store.NewGCRCredStore(d.GcpCredPath)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user