Integrating Managed Service for GitLab with SourceCraft Security
Integrating with SourceCraft Security enables you to verify code security from a Managed Service for GitLab instance. Instance repositories are automatically mirrored to SourceCraft, which runs checks on them and displays the results.
Managed Service for GitLab instances support the full range of SourceCraft Security
- Secret scanning
: Searching the commit history for API keys, tokens, passwords, and other sensitive data. - Software composition analysis (SCA)
: Detecting known vulnerabilities in third-party components and verifying their licenses. - Static application security testing (SAST)
: Scanning code for vulnerabilities, errors, and security standard violations without running it. - AI-powered vulnerability analysis and prioritization
: Assessing risks and providing recommendations for fixing identified issues. - Scan history
and security dashboard : Viewing scan runs and results for individual repositories and the entire organization.
Warning
For integration, you need the paid SourceCraft Security add-on. The cost is based on the SourceCraft pricing policy
Repositories are created in the same Yandex Cloud organization where the GitLab instance is located. This organization may be different from the personal organization
By enabling the integration, you confirm sending the source code to SourceCraft. All repositories of the GitLab instance are mirrored, regardless of their visibility settings. In SourceCraft, mirrored repositories are created as private
How the integration works
After you enable the integration, SourceCraft Security creates private copies of the instance repositories in SourceCraft and keeps their code synchronized. New instance repositories are also synchronized with SourceCraft. Checks run in mirrored repositories in SourceCraft.
Note
The system runs scans when commits are pushed to the default branch
To grant developers access to mirrored repositories, invite them to the SourceCraft organization
Names and addresses of mirrored repositories in SourceCraft
GitLab groups and projects differ from SourceCraft projects
Address in GitLab:
https://<instance_domain>/<group_or_user>/<subgroup>/<repository>
Mirrored repository address in SourceCraft:
https://sourcecraft.dev/<organization_slug>/<group_or_user>-<subgroup>-<repository>
The subgroup is optional. If none exists, the relevant path segment is omitted. The organization slug is the organization ID in SourceCraft addresses. You can find it in the organization settings
Here are some examples of converting GitLab instance repository addresses on the
example.gitlab.yandexcloud.netdomain in the organization with themy-orgslug:
GitLab
https://example.gitlab.yandexcloud.net/test-group/test-subgroup/example-repoSourceCraft
https://sourcecraft.dev/my-org/test-group-test-subgroup-example-repo
GitLab
https://example.gitlab.yandexcloud.net/example-user/my-projectSourceCraft
https://sourcecraft.dev/my-org/example-user-my-project
GitLab
https://example.gitlab.yandexcloud.net/test-group/test-projectSourceCraft
https://sourcecraft.dev/my-org/test-group-test-project