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
|
AuthURL string
|
||||||
UserName string
|
UserName string
|
||||||
Password string
|
Password string
|
||||||
GCRCredPath string
|
GcpCredPath string
|
||||||
AwsAccessKey string
|
AwsAccessKey string
|
||||||
AwsSecretKey string
|
AwsSecretKey string
|
||||||
AwsRegion string
|
AwsRegion string
|
||||||
|
|||||||
@@ -32,8 +32,8 @@ func (g *GCR) CheckOptions(domain string, d docker.DockerOption) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
g.Auth = types.AuthConfig{}
|
g.Auth = types.AuthConfig{}
|
||||||
if d.GCRCredPath != "" {
|
if d.GcpCredPath != "" {
|
||||||
g.Store = store.NewGCRCredStore(d.GCRCredPath)
|
g.Store = store.NewGCRCredStore(d.GcpCredPath)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user