Safeguard
Developer Tools•

IDE, CLI, CI or pull request: which scan stage fits which job?

A quick guide to what each scan stage is for: IDE for hints, CLI for local and one-off checks, CI for repeatable runs, pull request for the enforced gate.

Safeguard Security Team
4 min read

Use the IDE for hints while coding, the CLI for local and one-off checks, CI for repeatable runs, and the pull request for the enforced gate. They overlap in tooling but differ in purpose: some give feedback, one gives control.

Definitions

  • IDE scan: an extension that checks code and dependencies inside the editor.
  • CLI scan: a command you run in a terminal, locally or inside a script.
  • CI scan: a job in your continuous integration pipeline, triggered automatically.
  • Pull request scan: a CI scan tied to a pull request or merge request, whose result can block a merge.

The last two are often the same job viewed from different angles. What makes it a pull request scan is the trigger and the required status.

What each stage is for

StageJobWho triggers itCan it be skipped?
IDEFast hintsThe developer, passivelyYes
CLILocal checks, investigation, custom pipelinesA person or a scriptYes, if manual
CIRepeatable automated runsA pipeline eventNot if required
Pull requestEnforced gate before mergeA pull request eventNot if required

Choosing by team size

Team sizeStart withAdd next
1 to 5Pull request scanIDE, weekly rescan
5 to 50Pull request scan plus shared policyIDE, scheduled rescan, ownership routing
50 and upDefault-on pipeline templates, tiered gatesInventory, release gates, central exceptions

The common thread: the enforced stage first, the convenient stages after.

Common questions

Do I need all four? No. The enforced pull request stage is the one that matters most. The others add speed and coverage.

Which one produces audit evidence? CI and pull request runs, because they are recorded and repeatable. IDE and manual CLI runs leave weaker records.

Can the same tool do all four? Often yes, which helps keep one policy. Check that the tool reads the same configuration in each place.

Steps to decide

  1. Write down what you must enforce. This is your pull request or CI scope.
  2. Write down what you want fast. This is your IDE and pre-commit scope.
  3. Write down what you need to investigate. This is your CLI use.
  4. Check that all three read the same policy.
  5. Review after a quarter against developer feedback and escape rates.

Related reading

See which scan stage a five person team should set up first and when to run a scan from the CLI instead of CI.

Try it yourself

Click through it at your own pace, or open it full screen.

Look at what a dependency inventory contains, since every stage in this guide reads from that same picture.

Where Safeguard fits

Safeguard is available as a desktop app, a CLI, extensions for VS Code, JetBrains, and browsers, plus pull request gates, all driven by shared policies. You can start with the free scan at https://gold.safeguard.sh/scan.

Quick check

Which stage should I set up first?

The pull request stage, made a required check, because it is the one every change must pass.

Is the CLI the same as CI?

No. The CLI is a tool you can run anywhere. CI is where you choose to run it automatically and consistently.

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.