Skip to content

Commit 919b7a6

Browse files
🌱 fix lint gosec false complain (#3590)
fix lint gosec false complain
1 parent 742ab8b commit 919b7a6

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

pkg/plugins/common/kustomize/v1/scaffolds/internal/templates/config/crd/kustomization.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ func (f *Kustomization) SetTemplateDefaults() error {
5050
return nil
5151
}
5252

53+
//nolint:gosec to ignore false complain G101: Potential hardcoded credentials (gosec)
5354
const (
5455
resourceMarker = "crdkustomizeresource"
5556
webhookPatchMarker = "crdkustomizewebhookpatch"

pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/crd/kustomization.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ func (f *Kustomization) SetTemplateDefaults() error {
5151
return nil
5252
}
5353

54+
//nolint:gosec to ignore false complain G101: Potential hardcoded credentials (gosec)
5455
const (
5556
resourceMarker = "crdkustomizeresource"
5657
webhookPatchMarker = "crdkustomizewebhookpatch"

pkg/plugins/golang/v2/scaffolds/internal/templates/config/crd/kustomization.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ func (f *Kustomization) SetTemplateDefaults() error {
5050
return nil
5151
}
5252

53+
//nolint:gosec to ignore false complain G101: Potential hardcoded credentials (gosec)
5354
const (
5455
resourceMarker = "crdkustomizeresource"
5556
webhookPatchMarker = "crdkustomizewebhookpatch"

0 commit comments

Comments
 (0)