Skip to content

Commit 8a76dbd

Browse files
committed
cleanup: add goling gosec exception for Secret type constants
1 parent 03eec53 commit 8a76dbd

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

pkg/credentials/common/constants.go

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ package common
22

33
// Secret key constants used in credential files,
44
// so as to avoid reliance on corev1.Secret.
5+
//
6+
//nolint:gosec // for known Kubernetes secret-type constants, not real credentials
57
const (
68
BasicAuthUsernameKey = "username"
79
BasicAuthPasswordKey = "password"

pkg/credentials/gitcreds/creds.go

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package gitcreds
1919
import (
2020
"flag"
2121
"fmt"
22+
2223
"github.com/tektoncd/pipeline/pkg/credentials/common"
2324
credmatcher "github.com/tektoncd/pipeline/pkg/credentials/matcher"
2425
credwriter "github.com/tektoncd/pipeline/pkg/credentials/writer"

0 commit comments

Comments
 (0)