This feature is only available on Chainloop’s platform paid plans.
- Enroll Your GitLab repositories to Chainloop
- Send GitLab token during the attestation process
1 - Enroll Your GitLab repositories to Chainloop
To make sure you own the repository that the attestation is coming from, you’ll need to onboard your GitLab repository into the Chainloop platform first. This can be done by clicking on the “Add GitLab repositories” button in the repositories section.Chainloop will only store repositories ID and Name, it will not store repository code.

2 - Send GitLab token during the attestation process
You are now ready to leverage GitLab’s OIDC tokens from your pipelines. The requirement is to create an ID token that has the chainloop audience. To achieve this in GitLab, you can add the following snippet to your pipeline yaml file.Note that if you have onboarded the same repository to more than one Chainloop organization, you’ll need to pass the —org flag to the init command, for example.