Suppress lint errors
This commit is contained in:
parent
f4829178b3
commit
58ab57201f
@ -63,7 +63,7 @@ const (
|
||||
// For CLI-based auth, such as with LDAP upstream identity providers, the user may use these environment variables
|
||||
// to avoid getting interactively prompted for username and password.
|
||||
defaultUsernameEnvVarName = "PINNIPED_USERNAME"
|
||||
defaultPasswordEnvVarName = "PINNIPED_PASSWORD"
|
||||
defaultPasswordEnvVarName = "PINNIPED_PASSWORD" //nolint:gosec // this is not a credential
|
||||
|
||||
httpLocationHeaderName = "Location"
|
||||
|
||||
|
@ -471,7 +471,7 @@ func TestE2EFullIntegration(t *testing.T) {
|
||||
}
|
||||
})
|
||||
require.NoError(t, os.Setenv(usernameEnvVar, expectedUsername))
|
||||
const passwordEnvVar = "PINNIPED_PASSWORD"
|
||||
const passwordEnvVar = "PINNIPED_PASSWORD" //nolint:gosec // this is not a credential
|
||||
originalPassword, hadOriginalPassword := os.LookupEnv(passwordEnvVar)
|
||||
t.Cleanup(func() {
|
||||
if hadOriginalPassword {
|
||||
|
Loading…
Reference in New Issue
Block a user