Skip to content

Commit

Permalink
cleanup: add goling gosec exception for Secret type constants
Browse files Browse the repository at this point in the history
  • Loading branch information
waveywaves committed Feb 19, 2025
1 parent 03eec53 commit 5bda94b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/credentials/common/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package common

// Secret key constants used in credential files,
// so as to avoid reliance on corev1.Secret.
//
//nolint:gosec // for known Kubernetes secret-type constants, not real credentials
const (
BasicAuthUsernameKey = "username"
BasicAuthPasswordKey = "password"
Expand Down

0 comments on commit 5bda94b

Please sign in to comment.