Suppress lint errors

This commit is contained in:
Ryan Richard 2021-07-26 17:20:49 -07:00
parent f4829178b3
commit 58ab57201f
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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 {