> For AI agents: the complete documentation index is available at https://docs.hod.sh/llms.txt, the full documentation bundle is available at https://docs.hod.sh/llms-full.txt.

# GitLab

GitLab (gitlab.com or self-managed) can start runs on pushes, tags and merge requests, and shows a status per job on the commit.

1. Set `HOD_GITLAB_URL`, `HOD_GITLAB_TOKEN` (an access token with the `api` and `read_repository` scopes) and `HOD_GITLAB_SIGNING_TOKEN` (`whsec_` and the base64 of 32 random bytes, such as `echo whsec_$(head -c32 /dev/urandom | base64)`). GitLab before 19.0 has no signing tokens: set `HOD_GITLAB_WEBHOOK_SECRET` (32+ characters) instead.
2. Add a webhook to the project or group: URL `<HOD_PUBLIC_URL>/api/v1/orgs/default/webhooks/gitlab`, that signing token (or secret token), and the push, tag push and merge request events.

Projects may be private: runners clone through the server, so the token never leaves it. Merge requests from forks don't run yet.
