IDE Security Scanning: Fixing Vulnerabilities Before the Pull Request
A developer opens a pull request, waits for CI, and learns that the dependency they added last Tuesday has a critical vulnerability. Or that a test API key slipped into a config file. The finding is correct. The timing is not. By then the change has a branch, a reviewer, maybe a commit in shared history, and fixing it means another round trip.
IDE security scanning moves part of that feedback into the editor, where the developer is already looking at the line that caused it. Done well, it catches secrets before they are committed, puts dependency findings on the line that declares the package, and shows whether the pull request will be blocked before anyone pushes.
Done badly, it is a second, noisier copy of CI that developers learn to ignore. This post covers what belongs in the editor and what does not, how trust and sign-in should work, how to apply fixes where versions are actually set, and how to give coding agents the same checks.
Why the pull request is late for some findings
The pull request is the right place to enforce policy. It is a shared, reviewable checkpoint, and it runs on infrastructure you control. It is the wrong place to discover some problems for the first time.
- Secrets. Once a credential is committed and pushed, deleting it from the latest file does not revoke it. It lives in history, in forks and in clones. The cheap fix is before the commit.
- Dependency choices. The decision to add or pin a package is made in the manifest. Feedback an hour later in CI turns a one-line edit into a context switch.
- Guardrail surprises. A developer who learns that a Block guardrail applies only after opening the pull request has already asked for review on a change that cannot merge.
None of this argues for removing the CI gate. It argues for previewing the gate where the work happens.
What belongs in IDE security scanning, and what stays in CI
An editor is a personal, interactive environment. A CI pipeline is shared and authoritative. Split the work along that line.
Secrets: scan locally, on save
Secret detection fits the editor well. It is fast, it works file by file, and the cost of a miss is high. Scan files when they are opened, saved or changed on disk, not on every keystroke. The finding should say whether the secret is only in the working tree or already committed, because the response is different: remove it and load it from a secret store, or revoke and rotate it and clean history.
Validation matters as much here as in any other secrets workflow. A hover that says the provider confirmed the key is live is a reason to stop and rotate. A key the provider already rejected is a cleanup task. The secret should go only to its provider for that check, never to the scanning vendor.
Dependency findings on the declaring line
A vulnerable package is a property of the dependency graph, but the fix is a line in a file. Put the finding on that line: the declaration in package.json, pom.xml, go.mod or requirements.txt that brings the package in. Lead the message with the fix and the priority, not the CVE list. A developer reading "upgrade X to Y to fix two vulnerabilities, due in 15 days" knows what to do. A developer reading three CVE identifiers does not.
Code findings, with care
Static analysis in the editor is useful when it shows findings for code you just touched and offers a fix you can review. It becomes noise when it reruns a full analysis on every edit. Rescan code on commit or on demand, and mark findings on edited lines as awaiting a rescan rather than pretending they are current.
A preview of the pull request gate
The editor should answer one question before a push: which guardrails apply to this repository, and in which mode? After a pull request exists, it should show whether it is blocked and mark the exact lines that block it.
What stays in CI
- The enforcement decision. The editor previews; the pull request gate decides.
- Full-repository analysis on a clean checkout, with the same configuration for every contributor.
- Anything that needs build infrastructure, credentials or time a laptop does not have.
If the editor and the gate disagree, developers stop trusting both. The editor's findings should come from the same scan data, priorities and suppressions that the pull request is evaluated against.
Trust and sign-in: what an editor scanner may do
An editor extension runs on a developer's machine with that developer's access. Security teams should hold it to the standard they would apply to any agent with file system access.
- Folder trust. The scanner should run only in folders the developer trusts, and it should respect the editor's own trust model, such as VS Code Workspace Trust. Opening a cloned repository should not be enough to start running Git and reading files in it.
- Clear data boundaries. Developers should be able to see what stays local and what is uploaded. Secrets scanning can stay entirely on the machine. Dependency and code analysis usually needs the dependency and source content to go to a service that resolves and analyzes it.
- Browser sign-in, no stored credentials in the extension. A browser sign-in shared by the command-line tool and the editor means one session to revoke, and no tokens copied into editor settings or agent configuration files.
- Useful when signed out. Secrets scanning should work without an account. That makes it easy to roll out widely before every developer is provisioned.
Fixing dependency vulnerabilities where the version is set
The hard part of a dependency fix is often finding the line to change. A quick fix that edits the wrong place, or edits a manifest whose version is pinned elsewhere, wastes the developer's time and erodes trust in the tool.
There are three common cases.
- The version is declared directly in the manifest. Edit it in place. This is the simple case.
- The version is managed by something else. In Maven, a dependency's version often comes from a parent POM, an imported BOM or a property. The fix is to change that source, and other libraries it manages move with it, so build and test after you apply it.
- A lockfile pins the resolved version. Editing the manifest alone does not change what installs. The right action is the package manager's own upgrade command, so the lockfile is updated consistently.
A Maven example. The vulnerable version is not on the dependency line at all:
<properties><jackson.version>2.15.3</jackson.version></properties>
The fix belongs in the property, not on each <dependency> that references ${jackson.version}. For an npm project with a lockfile, the equivalent is a command such as npm install lodash@4.17.21 rather than a hand edit to package.json.
After the edit, the finding should not vanish on faith. It should stay visible, marked as awaiting a rescan, until a dependency scan confirms the upgrade cleared it.
Keeping IDE security scanning quiet enough to use
The fastest way to lose developers is to open a ten-year-old repository and paint every manifest red. Two controls help.
- Show new findings only. Let developers filter dependency and code findings to those that are not already on the monitored branch. Existing issues still exist and still have owners and SLOs. They just do not need to interrupt someone fixing an unrelated bug.
- Map editor severity to priority. An error squiggle should mean "act on this now," which means an urgent or new, important finding, or a line that blocks the pull request. Lower-priority items can be warnings or information.
Some things should never be filtered: secrets, findings in AI agent configuration files and pull request guardrail results. A developer can hide a dependency or code finding locally for a while. That should not change the finding for anyone else.
Connecting coding agents to the same checks
More code in the editor is now written by coding agents, and many of them run in a terminal next to the editor rather than inside it. An editor scanner does not see a package that an agent installs from the command line. Agents need their own hooks.
The practical requirements are the same ones you would set for a developer:
- A hook that checks each package an agent installs, in notify mode while you learn the signal, then block mode when you trust it.
- Optional checks for secrets when the agent commits or pushes, and for code when it pushes.
- A connection to the same findings and guardrails, so the agent can ask what is wrong and how to fix it, instead of guessing.
- No long-lived tokens written into agent configuration files.
Setup should be one step per agent, it should print what it changed, and removal should take out only the scanner's entries.
How Heeler handles IDE security scanning
The Heeler IDE extensions show Heeler findings as diagnostics on the lines they apply to. Each extension runs the Heeler CLI as a language server for the folders you trust. Heeler IDE extensions 2.2 support VS Code, Cursor, Windsurf, Devin Desktop, Kiro, VSCodium and Antigravity; JetBrains IDEs; Eclipse; Sublime Text 4; and Neovim.
In the editor
- Secrets in the files you open, save and change are scanned on your computer and are not uploaded. With the live check on, Heeler asks the provider whether the secret still works, where the provider supports it, and shows its recommendation. Secrets scanning works without a Heeler account. See secrets detection and validation.
- Dependency, code and AI agent config file findings appear after you sign in. Sign-in happens in the browser, and every Heeler extension and the
heelerclicommand on the computer share it. - Each hover shows the priority, the SLO and the recommended fix. Findings can be limited to those that are new against the monitored branch; secrets, agent file findings and guardrail results always show.
- Trust is checked twice in editors with their own trust model: the editor's trust first, then Heeler's own prompt for each folder it would scan.
Quick fixes
- Upgrade a dependency in its manifest, or in the Maven parent, BOM or property that sets its version.
- Copy upgrade command when a lockfile pins the resolved version or the manifest cannot be edited, for package managers such as npm, pnpm, yarn, Go, Poetry, uv, Maven, .NET, Cargo and Composer.
- Apply Heeler fix replaces code with a verified fix, shown as before and after in the hover. Each applied fix is one undo step.
For fixes made outside the editor, SCA auto-fix generates the change, builds and tests it, and opens a pull request.
PR guardrails in the editor
The status item summarizes the guardrails that apply to the repository by mode, and Show Applicable Guardrails lists them. When the branch's pull request is blocked, the status item says so and the lines that block it are marked as errors. The editor's findings come from the same Heeler scan data that PR guardrails evaluate, with the risk and SLO overrides, mitigations and suppressions recorded in Heeler.
Coding agents
Set Up AI Agents in the extension connects agents to the Heeler MCP server and installs Heeler Agent Hooks for the command-line agents you select. From a terminal, one command does the same for a single agent:
heelercli agent setup --agent claude-code
It signs in, installs Heeler security hooks and registers the Heeler MCP server for the agent, then prints every file it changed. Hooks run in notify mode by default, or in block mode with --security-hooks block. heelercli agent doctor checks the sign-in, hooks and MCP entry, and heelercli agent uninstall removes only Heeler's entries. For more on when to move from notify to block, see our post on coding agent security hooks.
A rollout checklist for IDE security scanning
- Start with secrets. They need no account, run locally and have the clearest payoff. Ask developers to install the extension in the editors they already use.
- Write down the data boundary. Tell developers what stays on the machine and what is uploaded, and that only trusted folders are scanned.
- Turn on sign-in for dependency, code and agent file findings once developers have accounts.
- Default to new findings for teams with large backlogs, so the editor shows what their change introduced.
- Publish your guardrails before you enforce them. Developers can see which ones apply, and in which mode, before a pull request exists.
- Set up coding agents with hooks in notify mode, review what they flag, then switch to block mode.
- Keep the CI gate. The editor is a preview. The pull request is still where policy is enforced.
FAQ
What is IDE security scanning?
IDE security scanning shows security findings, such as secrets, vulnerable dependencies and code issues, inside the editor on the lines that cause them. It gives developers feedback before a commit or pull request, while the CI gate still enforces policy.
Does IDE security scanning replace CI scanning?
No, it previews it. CI and pull request guardrails remain the authoritative check, and the editor is most useful when its findings match what the gate will evaluate.
Are secrets found in the editor uploaded anywhere?
In the Heeler IDE extensions, secrets are found on your computer and never uploaded to Heeler. When the live check is on, the secret goes only to its provider to check whether it still works.
Why does the quick fix edit a Maven property instead of my dependency?
Because that is where the version is set. When a Maven parent POM, imported BOM or property sets a dependency's version, the upgrade has to change that source, and other libraries it manages may move too, so build and test afterward.
Do coding agents get the same checks as the editor?
They can. Agent hooks check what a command-line agent installs, commits and pushes, and an MCP connection gives the agent the same findings and guardrails the developer sees.
IDE security scanning works when it is quiet, honest about what it uploads, and agrees with the gate that decides the merge. Heeler brings secrets, dependency and code findings, fixes and guardrail results into the editors your developers use, and extends the same checks to their coding agents. Get a demo


.jpg)
