Skip to content

Commit edab9bf

Browse files
committed
fix code spelling
codespell 2.3.0 now report a bunch of new spelling error: secert to secret alll to all validaton to validation Signed-off-by: Chmouel Boudjnah <[email protected]>
1 parent c6fc148 commit edab9bf

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

docs/content/docs/install/bitbucket_cloud.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ $ tkn pac webhook add -n repo-pipelines
174174
👀 I have detected a controller url: https://pipelines-as-code-controller-openshift-pipelines.apps.awscl2.aws.ospqa.com
175175
? Do you want me to use it? Yes
176176
✓ Webhook has been created on repository workspace/repo
177-
🔑 Secret workspace-repo has been updated with webhook secert in the repo-pipelines namespace.
177+
🔑 Secret workspace-repo has been updated with webhook secret in the repo-pipelines namespace.
178178
179179
```
180180

docs/content/docs/install/github_webhook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ $ tkn pac webhook add -n repo-pipelines
196196
? Do you want me to use it? Yes
197197
? Please enter the secret to configure the webhook for payload validation (default: AeHdHTJVfAeH): AeHdHTJVfAeH
198198
✓ Webhook has been created on repository owner/repo
199-
🔑 Secret owner-repo has been updated with webhook secert in the repo-pipelines namespace.
199+
🔑 Secret owner-repo has been updated with webhook secret in the repo-pipelines namespace.
200200
201201
```
202202

docs/content/docs/install/gitlab.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ $ tkn pac webhook add -n project-pipelines
157157
? Do you want me to use it? Yes
158158
? Please enter the secret to configure the webhook for payload validation (default: TXArbGNDHTXU): TXArbGNDHTXU
159159
✓ Webhook has been created on your repository
160-
🔑 Secret repositories-project has been updated with webhook secert in the project-pipelines namespace.
160+
🔑 Secret repositories-project has been updated with webhook secret in the project-pipelines namespace.
161161
162162
```
163163

pkg/cli/webhook/secret.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (w *Options) updateWebhookSecret(ctx context.Context, response *response) e
4040
return err
4141
}
4242

43-
fmt.Fprintf(w.IOStreams.Out, "🔑 Secret %s has been updated with webhook secert in the %s namespace.\n", w.SecretName, w.RepositoryNamespace)
43+
fmt.Fprintf(w.IOStreams.Out, "🔑 Secret %s has been updated with webhook secret in the %s namespace.\n", w.SecretName, w.RepositoryNamespace)
4444
return nil
4545
}
4646

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
🔑 Webhook Secret test-repo has been created in the test-ns namespace.
22
🔑 Repository CR test-repo has been updated with webhook secret in the test-ns namespace
3-
🔑 Secret test-secret has been updated with webhook secert in the test-ns namespace.
3+
🔑 Secret test-secret has been updated with webhook secret in the test-ns namespace.

pkg/cmd/tknpac/info/install.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func install(ctx context.Context, run *params.Run, ios *cli.IOStreams, apiURL st
7575
}
7676
repos, err := run.Clients.PipelineAsCode.PipelinesascodeV1alpha1().Repositories("").List(ctx, metav1.ListOptions{})
7777
if err != nil {
78-
return fmt.Errorf("cannot list alll repo on cluster, check your rights and that paac is installed: %w", err)
78+
return fmt.Errorf("cannot list all repo on cluster, check your rights and that paac is installed: %w", err)
7979
}
8080
reposItems := &repos.Items
8181
args := struct {

pkg/provider/bitbucketserver/bitbucketserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (v *Provider) SetLogger(logger *zap.SugaredLogger) {
5252
func (v *Provider) Validate(_ context.Context, _ *params.Run, event *info.Event) error {
5353
signature := event.Request.Header.Get("X-Hub-Signature")
5454
if event.Provider.WebhookSecret == "" && signature != "" {
55-
return fmt.Errorf("bitbucket-server failed validaton: failed to find webhook secret")
55+
return fmt.Errorf("bitbucket-server failed validation: failed to find webhook secret")
5656
}
5757
return github.ValidateSignature(signature, event.Request.Payload, []byte(event.Provider.WebhookSecret))
5858
}

pkg/provider/gitlab/gitlab.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ func (v *Provider) SetLogger(logger *zap.SugaredLogger) {
6969
func (v *Provider) Validate(_ context.Context, _ *params.Run, event *info.Event) error {
7070
token := event.Request.Header.Get("X-Gitlab-Token")
7171
if event.Provider.WebhookSecret == "" && token != "" {
72-
return fmt.Errorf("gitlab failed validaton: failed to find webhook secret")
72+
return fmt.Errorf("gitlab failed validation: failed to find webhook secret")
7373
}
7474

7575
if subtle.ConstantTimeCompare([]byte(event.Provider.WebhookSecret), []byte(token)) == 0 {
76-
return fmt.Errorf("gitlab failed validaton: event's secret doesn't match with webhook secret")
76+
return fmt.Errorf("gitlab failed validation: event's secret doesn't match with webhook secret")
7777
}
7878
return nil
7979
}

0 commit comments

Comments
 (0)