AppSec
The API recipe
Request a scan, poll it, request a verdict, and exit on the answer. The recipe is curl against the machine API; nothing has to be installed on the runner.
What it needs
A TrustIvan API key with scans:create, scans:read and verdicts:request. A pipeline key cannot be granted policies:manage, webhooks:manage or apikeys:manage.
Setup: CI pipelines
AppSec
trustivan gate
The poll-and-verdict loop as one binary. It exits 1 when the policy blocked the build and 2 when TrustIvan could not answer, so a pipeline can tell the two apart.
What it needs
The same scoped API key.
Setup: The trustivan CLI
How it is verified
The CLI and the recipe are tested in the product repository.
See also: Shift left.