From 3ddce4f02129a7f799eaa43b81f013e279fbcc8d Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Tue, 10 Oct 2023 10:27:41 +0800 Subject: [PATCH] fix: typo Signed-off-by: guoguangwu --- pkg/http-server/remote-repo.go | 2 +- pkg/notifications/webhook/webhook.go | 2 +- test/e2e/scan/scan_tf_files_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/http-server/remote-repo.go b/pkg/http-server/remote-repo.go index 080afee59..04d92d4b4 100644 --- a/pkg/http-server/remote-repo.go +++ b/pkg/http-server/remote-repo.go @@ -165,7 +165,7 @@ func (s *scanRemoteRepoReq) ScanRemoteRepo(iacType, iacVersion string, cloudType output = results.Violations } - // succesful + // successful return output, isAdmissionDenied, nil } diff --git a/pkg/notifications/webhook/webhook.go b/pkg/notifications/webhook/webhook.go index 000f00012..f74aad21e 100644 --- a/pkg/notifications/webhook/webhook.go +++ b/pkg/notifications/webhook/webhook.go @@ -59,7 +59,7 @@ func (w *Webhook) Init(config interface{}) error { return errInitFailed } - // succesful + // successful zap.S().Debug("initialized webhook notifier") return nil } diff --git a/test/e2e/scan/scan_tf_files_test.go b/test/e2e/scan/scan_tf_files_test.go index bcf6a8d59..8e6f31f7d 100644 --- a/test/e2e/scan/scan_tf_files_test.go +++ b/test/e2e/scan/scan_tf_files_test.go @@ -221,7 +221,7 @@ var _ = Describe("Scan is run for terraform files", func() { }) }) }) - Context("when --use-terraform-cache flag is used, all remote modules are refered from terraform cache", func() { + Context("when --use-terraform-cache flag is used, all remote modules are referred from terraform cache", func() { When("when --use-terraform-cache is set with output format json", func() { It("should not display any violations", func() { iacDir := filepath.Join(iacRootRelPath, "terraform_cache_use_in_scan")