Get the PAC Webhook URL
Before using this page, an administrator must expose the PAC controller as described in Configure Access.
Use this page to get the webhook URL for PAC. This URL lets Git providers notify PAC about repository events, such as commits and merge requests, so PAC can trigger matching PipelineRuns.
Choose the section that matches how PAC was exposed: Gateway API, Ingress, or NodePort. Examples use the default PAC namespace tekton-pipelines; replace it in the commands if your OpenShiftPipelinesAsCode CR uses a different targetNamespace.
Using Gateway API
Use this section if PAC was exposed with Gateway API.
Read the host from the HTTPRoute and print the webhook URL:
Expected result: the command prints the host-based PAC webhook URL.
Use this URL when configuring the Git provider webhook or setting up a repository integration.
Using Ingress
Use this section if PAC was exposed with an Ingress.
Read the host from the Ingress and print the webhook URL:
Use https://${HOST} instead if the Ingress has TLS configured:
Using NodePort
Use this section if PAC was exposed with a dedicated NodePort Service. Print the URL from a reachable node IP and the generated NodePort:
Verification
The webhook URL must be reachable from your Git provider. For a public Git provider, the URL must be publicly reachable. For a self-hosted Git provider, network reachability from the provider host to the cluster is enough.
If DNS is not ready yet, verify the route with the host resolved to the Gateway or Ingress external address from the Git provider network. Do not register a raw IP URL unless the PAC exposure is configured without a host requirement.
After setting WEBHOOK_URL, run a quick check from a host that can reach the PAC endpoint:
In current PAC versions, GET / returns 200 OK with a small JSON status body. A connection refused or timeout indicates a network issue.