Skip to content

Commit

Permalink
🌱 fix lint gosec false complain (#3590)
Browse files Browse the repository at this point in the history
fix lint gosec false complain
  • Loading branch information
camilamacedo86 committed Sep 5, 2023
1 parent 742ab8b commit 919b7a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func (f *Kustomization) SetTemplateDefaults() error {
return nil
}

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

Check failure on line 56 in pkg/plugins/common/kustomize/v1/scaffolds/internal/templates/config/crd/kustomization.go

View workflow job for this annotation

GitHub Actions / golangci-lint

G101: Potential hardcoded credentials (gosec)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func (f *Kustomization) SetTemplateDefaults() error {
return nil
}

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

Check failure on line 57 in pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/crd/kustomization.go

View workflow job for this annotation

GitHub Actions / golangci-lint

G101: Potential hardcoded credentials (gosec)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func (f *Kustomization) SetTemplateDefaults() error {
return nil
}

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

Check failure on line 56 in pkg/plugins/golang/v2/scaffolds/internal/templates/config/crd/kustomization.go

View workflow job for this annotation

GitHub Actions / golangci-lint

G101: Potential hardcoded credentials (gosec)
Expand Down

0 comments on commit 919b7a6

Please sign in to comment.