Skip to content

Commit 5871c59

Browse files
committed
docs: fix Forgejo webhook and hub URL drift
Remove the Forgejo example that suggests an empty webhook secret. This setup cannot work because Forgejo/Gitea validation requires a signature and a non-empty shared secret. Align the remaining hub-url examples with the Artifact Hub API default used by the shipped ConfigMap and settings defaults. This keeps the architecture and OpenShift installation docs consistent with the main config reference. Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
1 parent bf091f4 commit 5871c59

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

docs/content/docs/dev/architecture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ data:
408408
# Application settings
409409
application-name: "Pipelines as Code"
410410
411-
# Tekton Hub URL
412-
hub-url: "https://api.hub.tekton.dev/v1"
411+
# Artifact Hub API URL
412+
hub-url: "https://artifacthub.io/api/v1"
413413
414414
# Remote tasks support
415415
remote-tasks: "true"

docs/content/docs/installation/openshift.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ spec:
5757
enable-cancel-in-progress-on-pull-requests: 'false'
5858
enable-cancel-in-progress-on-push: 'false'
5959
skip-push-event-for-pr-commits: 'true'
60-
hub-url: 'https://artifacthub.io'
60+
hub-url: 'https://artifacthub.io/api/v1'
6161
hub-catalog-type: 'artifacthub'
6262
error-detection-max-number-of-lines: '50'
6363
error-detection-simple-regexp: >-

docs/content/docs/providers/forgejo.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,10 @@ kubectl -n target-namespace create secret generic forgejo-webhook-config \
9393
--from-literal webhook.secret="SECRET_AS_SET_IN_WEBHOOK_CONFIGURATION"
9494
```
9595

96-
If you configured an empty webhook secret, use an empty string:
97-
98-
```shell
99-
kubectl -n target-namespace create secret generic forgejo-webhook-config \
100-
--from-literal provider.token="TOKEN_AS_GENERATED_PREVIOUSLY" \
101-
--from-literal webhook.secret=""
102-
```
96+
{{< callout type="warning" >}}
97+
Forgejo and Gitea webhook validation requires a non-empty shared secret.
98+
Do not set `webhook.secret` to an empty string.
99+
{{< /callout >}}
103100

104101
### Create the Repository CR
105102

0 commit comments

Comments
 (0)