diff --git a/cli/command/service/opts.go b/cli/command/service/opts.go index 020e9dd015..f7d7fcfa87 100644 --- a/cli/command/service/opts.go +++ b/cli/command/service/opts.go @@ -914,7 +914,7 @@ func addServiceFlags(flags *pflag.FlagSet, opts *serviceOptions, defaultFlagValu } const ( - flagCredentialSpec = "credential-spec" + flagCredentialSpec = "credential-spec" //nolint:gosec // ignore G101: Potential hardcoded credentials flagPlacementPref = "placement-pref" flagPlacementPrefAdd = "placement-pref-add" flagPlacementPrefRemove = "placement-pref-rm" diff --git a/cli/config/credentials/native_store.go b/cli/config/credentials/native_store.go index afe542cc3c..f9619b0381 100644 --- a/cli/config/credentials/native_store.go +++ b/cli/config/credentials/native_store.go @@ -7,7 +7,7 @@ import ( ) const ( - remoteCredentialsPrefix = "docker-credential-" + remoteCredentialsPrefix = "docker-credential-" //nolint:gosec // ignore G101: Potential hardcoded credentials tokenUsername = "" )