AppSec
Merge request checks
A project webhook's merge request events (open, reopen, update) trigger a scan of the head and base commits; the result is posted as a commit status.
What it needs
Your organization's stored git credential for the GitLab host, and a project webhook pointing at TrustIvan.
Setup: Pull request checks
AppSec
Private repository scanning
Scans a private repository for vulnerable dependencies, secrets, infrastructure-as-code misconfigurations and, when turned on, SAST rules, with a git credential stored against the host.
What it needs
A personal, project or deploy token with read access, for gitlab.com or a self-managed instance.
Setup: Scan a private repository
AppSec
GitLab CI gate
The shipped CI template requests a scan of what the pipeline built and fails the job when the policy verdict is fail.
What it needs
A TrustIvan API key with scans:create, scans:read and verdicts:request, nothing else. GitLab's job token is not used.
Setup: GitLab CI
NHI Security
GitLab connector
Inventories group and project access tokens and the bot users they authenticate as, deploy tokens, deploy keys and service accounts, with last use where GitLab reports it.
What it needs
One token with the read_api scope only, whose user holds Owner on the scoped group (a group access token is preferred).
Setup: NHI connectors: GitLab
How it is verified
Merge request checks and the CI template are tested against recorded GitLab responses. The NHI connector: Tested against recorded provider responses; not yet run against a live account of this provider.