deniz.in

Markets

Weather

Loading weather

· via dev.to (home feed)

GitHub Extends CodeQL and Secret Scanning to Third-Party Coding Agents

GitHub's security validation is now generally available for third-party coding agents like Claude and Codex, applying CodeQL, dependency advisory checks and secret scanning to agent-written code by default.

GitHub Extends CodeQL and Secret Scanning to Third-Party Coding Agents

GitHub has made security validation generally available for third-party coding agents, extending its existing security tooling to code written by systems like Claude and OpenAI Codex working inside a repository. According to a Netics write-up published on dev.to, the feature applies three checks to agent-generated changes: CodeQL analysis for vulnerability patterns in the code, GitHub Advisory Database checks on newly introduced dependencies, and secret scanning for sensitive material such as API keys and tokens. When a check finds a problem, the agent attempts a fix before the pull request is finalized.

Three detectors, three classes of problem

The validation sits between code generation and pull request completion, which is what makes it concrete rather than a vague promise of safer AI code, as Netics frames it. Each detector covers a distinct failure mode: CodeQL targets vulnerable code patterns, the advisory check catches risky new dependencies, and secret scanning hunts for exposed credentials.

The three signals are not interchangeable, the post notes. A change can pass one and fail another — a newly added dependency may carry a known vulnerability even when the application code is tidy, and a token can be exposed without producing any CodeQL finding. Conversely, code can implement a security-relevant behavior that is wrong for the business but that no vulnerability query or advisory captures.

On by default, with no Advanced Security license

The validations are enabled by default and follow the repository's Copilot settings for which tools to run, so repositories that had already turned on security validation for Copilot's cloud agent extend the same protections to third-party agents automatically. The feature also does not require a GitHub Advanced Security license, which removes a cost obstacle for teams without the premium security tier and lets them treat the checks as standard coverage.

Netics adds a caution about inherited settings: repository configuration is not the same thing as a release policy. Before relying on defaults, security owners should record which tools are enabled, what happens when a check fails, who reviews attempted fixes, and which branches and environments are covered. A default answers whether checks run; it does not answer who is accountable for the result.

What automatic repair covers

When a check fires, the agent is expected to attempt a fix before the change is finalized. Netics sees this as genuinely useful — a vulnerable dependency can be swapped, an unsafe pattern rewritten, a detected secret removed — but also as a new risk if a team mistakes a retry for understanding. The diff a human eventually reviews is no longer the one that produced the finding, so the corrected code still needs inspection and the original result should remain visible to whoever approves the change.

GitHub, as cited in the post, says its Copilot cloud-agent validation has headed off hundreds of potential security leaks and vulnerabilities since October 2025. Netics treats that figure with care: it shows automated checks interrupt real failure modes, but it is not a measured safety rate for third-party agents, and it says nothing about how many context-specific defects survive a clean run.

Why it matters

As third-party coding agents become ordinary contributors to repositories, the pull request is becoming the practical point where security evidence gets enforced. GitHub's move places named, established tooling — CodeQL, advisory checks, secret scanning — at that boundary by default and without a licensing hurdle, which significantly lowers the chance that a new agent integration arrives with no checks at all because nobody found the right setting.

The limitation matters just as much. CodeQL does not know a feature's business intent, dependency checks do not judge whether a library's license or maintenance posture fits the system, secret scanning cannot prove credentials never leaked through logs, prompts or a different repository, and an attempted fix does not prove the agent preserved the requested behavior. Netics' position is that the feature works best as a gate that can stop or delay a change, with the release decision staying with the people who understand the repository. The questions left after a green run are ordinary engineering ones: does the change have the intended authority, can it reach production data, did the agent widen a permission, and is the diff reversible.

  • #github
  • #security
  • #codeql
  • #ai-agents
  • #devsecops

Related posts