Glossary · Policy, pipelines and supply chain

Shift left

Shift left is the practice of moving security checks earlier in the software delivery process, into design, coding, pull requests and CI, so that problems are found when they are cheapest and quickest to fix.

Picture the delivery process as a line from left to right: design, code, commit, build, test, release, operate. Traditionally, security testing happened near the right-hand end, shortly before or after release, when a finding meant reopening finished work. Shifting left moves checks towards the start: secret scanning in a pre-commit hook, SAST and software composition analysis on every pull request, IaC scanning before infrastructure changes merge, and a policy gate in CI before an image is published. The developer who wrote the change sees the problem while the context is fresh.

How it is used in practice

A typical shift-left setup runs fast, high-confidence checks on every change and slower, broader ones on a schedule. CI jobs call scanners, and a policy-as-code gate decides whether the build may proceed. Results appear where developers already work: the pull request, the CI log, the code host's security tab. Security teams own the policy and the tooling; development teams own the fixes. The same checks keep running after release, because new advisories are published against code that has not changed.

Common pitfalls

  • Shifting the work without the context. Developers handed hundreds of findings with no priority learn to ignore the tool.
  • Blocking on noise. A gate that fails builds on low-confidence or unfixable findings gets bypassed or removed.
  • Confusing outages with failures. A pipeline that cannot reach the security service should report that distinctly, not as "the build is insecure".
  • Over-privileged CI credentials. The key a pipeline uses to request a decision should not be able to change the policy or suppress findings.
  • Stopping at the left. Pre-release checks do not see drift, new advisories or runtime behavior. Shift left adds to runtime controls; it does not replace them.

How TrustIvan relates to it

TrustIvan fits into a pipeline through its API: a CI job scans an image or repository with a scoped key, requests a policy verdict, and fails when the verdict says to, while distinguishing "the build should stop" from "TrustIvan was unreachable". The pipeline's key needs only scans:create, scans:read and verdicts:request; it cannot author policies or suppress findings. A GitHub Actions composite action and GitLab CI integration package this. A rule can carry the warn effect while a policy is being rolled out, so the pipeline reports what it would have blocked. On GitHub and GitLab, TrustIvan can also check every pull request itself, reporting only the findings the change introduces (Pull request checks), and findings reach a pull request's changed lines through a SARIF export uploaded to the code host's own code scanning. See Gate a pipeline on a policy.

Related terms

Guides on Shift left

On the platform: Policy engine. All glossary terms

See TrustIvan on your own estate.

Book thirty minutes with an engineer and bring an image, a repository or a cloud account, or start free on the hosted service.