This feature is only available on Chainloop’s platform paid plans.
- Connect your GitLab repository to a project
- Send GitLab token during the attestation process
1 - Connect your GitLab repository to a project
Before attesting, connect the Chainloop GitLab integration and link the repository to a project:- Connect GitHub & GitLab — one-time organization setup.
- Create a project — link the repository to the project that will receive attestations.
Attestations from repositories that are not connected to a project will not be accepted.
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.
