mirror of https://github.com/docker/cli.git
linting: ignore some "G101: Potential hardcoded credentials" warnings
cli/config/credentials/native_store.go:10:2: G101: Potential hardcoded credentials (gosec)
remoteCredentialsPrefix = "docker-credential-"
^
cli/command/service/opts.go:917:2: G101: Potential hardcoded credentials (gosec)
flagCredentialSpec = "credential-spec"
^
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit d7c1fb9112
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
80a3add604
commit
e628209d9b
|
@ -914,7 +914,7 @@ func addServiceFlags(flags *pflag.FlagSet, opts *serviceOptions, defaultFlagValu
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
flagCredentialSpec = "credential-spec"
|
flagCredentialSpec = "credential-spec" //nolint:gosec // ignore G101: Potential hardcoded credentials
|
||||||
flagPlacementPref = "placement-pref"
|
flagPlacementPref = "placement-pref"
|
||||||
flagPlacementPrefAdd = "placement-pref-add"
|
flagPlacementPrefAdd = "placement-pref-add"
|
||||||
flagPlacementPrefRemove = "placement-pref-rm"
|
flagPlacementPrefRemove = "placement-pref-rm"
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
remoteCredentialsPrefix = "docker-credential-"
|
remoteCredentialsPrefix = "docker-credential-" //nolint:gosec // ignore G101: Potential hardcoded credentials
|
||||||
tokenUsername = "<token>"
|
tokenUsername = "<token>"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue