Skip to content

What GitAlert checks


GitAlert reads every diff the same way, every time. Its check says who opened the pull request and how big it is, then lists what the change touches. File-level findings name the file, and the exact line when a single line is responsible; dependency findings name the package and its registry; some signals (test files changed alongside source, a "fix" that changes only whitespace) are about the change as a whole.

Who opened it

Every labelled check says, near the top, who opened the pull request, and why GitAlert thinks so:

  • AI agent: the author is a known coding-agent account (for example GitHub Copilot, Devin, Cursor, OpenAI Codex or Google Jules); or a person's pull request whose title or description carries a strong, explicit marker, such as a "Generated with Claude Code" line, a Co-authored-by: Devin trailer or a statement that a model generated the change.
  • Automation bot: a known dependency or CI bot such as Dependabot, Renovate or github-actions, unless the pull request says an AI agent or a model wrote it. Any other bot account is an automation bot too, unless its title or the start of its description names a coding agent: Copilot, Devin, Cursor, Codex, OpenHands, Aider, Sweep, Codegen, Factory Droid or Ellipsis. For these accounts the name alone counts, and a "generated by a model" statement without one of those names does not.
  • Human: an account that is not a bot. A person's pull request is only called "AI agent" on strong, explicit evidence, so a person who merely mentions a product name isn't mislabelled.
  • Unknown: the pull request has no author GitHub can show (for example, a deleted account).

The evidence is printed next to the answer (for example "the author is a known AI coding agent account"), so a reviewer can check it. Who opened a PR is information for the reviewer: it never changes the label on its own. Triaging AI-agent PRs has the details.

Size

The check shows how big the change is: the number of files changed and the lines added and removed (for example 4 files, +120 −35). Size is context for the reviewer and does not change the label.

A diff larger than about 2 MB is not analysed at all; the check then says Couldn’t verify.

Sensitive-file changes

GitAlert surfaces changes to a fixed set of high-risk files, so a quiet edit buried in an otherwise boring diff never slips through unreviewed. The set is:

Category Files matched
Secrets & credentials .env, .secrets, .npmrc, .pypirc, .netrc, id_rsa, id_ed25519, secrets.yml; credentials on its own or as credentials.json, credentials.yml, credentials.ini or credentials.cfg
Keys & certificates *.pem, *.p12, *.pfx, *.jks, *.keystore, *.ppk, *.asc, *.gpg; and *.key directly inside a folder whose name begins with cert, key, secret, ssl, tls, pki, private or crypto (certs/server.key, config/ssl/site.key), or whose own name begins with one of those words (private.key)
CI & pipeline config anything under .github/workflows/, .github/actions/ or .circleci/; any action.yml; .gitlab-ci.yml, Jenkinsfile, .travis.yml, azure-pipelines.yml
Container config Dockerfile, Containerfile, docker-compose.yml
Infrastructure *.tf, *.tfvars

Names match in any folder and regardless of case, and every .yml name also matches as .yaml. Every name except credentials and action.yml also matches with an ending added after a dot (.env.production, id_rsa.pub, Dockerfile.prod).

A rename counts: moving one of these files is surfaced the same way as editing it. A Markdown or text file named after Dockerfile, Containerfile or credentials (docs/Dockerfile.md) is not, and nor is a source file that merely handles credentials (src/credentials.py). A list nobody reads protects nobody.

Each touched path is listed under Sensitive files. A sensitive-file change moves an otherwise clean PR to Worth a closer look; on its own it never makes a PR Likely needs attention, and it never blocks the merge.

New and made-up dependencies

When a pull request adds a package to a manifest (requirements*.txt, pyproject.toml, setup.py / setup.cfg, package.json, composer.json, Cargo.toml, go.mod or Gemfile), GitAlert lists it under New dependencies and checks that the name actually exists on its registry:

  • Python packages are checked against PyPI.
  • JavaScript packages are checked against npm.
  • PHP packages are checked against Packagist.
  • Rust crates are checked against crates.io.
  • Go modules are checked against the Go module proxy.
  • Ruby gems are checked against RubyGems.

Every added package is listed, even when it exists, because a new package is new code, a new maintainer and a new link in your supply chain. A name that can't be found on its registry is a hard rule and moves the PR to Likely needs attention: AI agents sometimes name packages that don't exist, and attackers register those names on purpose ("slopsquatting") to slip malware into a build.

Only the package name is sent to the registry, never your code. Up to 25 new packages are checked per pull request; if a PR adds more, the check says that not all of them were checked. Lockfiles are not read.

{success} This is how GitAlert answers "is this dependency change risky?": it shows every new dependency on the PR, and flags one that resolves to nothing before it reaches your lockfile.

Test changes

The quickest way to make a test suite pass is to change the tests rather than the code, so GitAlert reads the test edits in a diff too.

These are hard rules: any one of them moves the PR to Likely needs attention.

  • Skipped or disabled test: a test marked skip, xfail, only or similar in a test file.
  • Always-true assertion: an assertion that cannot fail (for example assert True, or comparing a value with itself).
  • Weakened assertion: a real assertion removed and an always-true one added in the same test file.
  • Whitespace-only "fix": the title says it fixes something, but the diff only changes whitespace.

These are listed as context and do not change the label:

  • Test files edited alongside source: a source change that also edits tests.
  • New mocks: a mock or patch added in a test.
  • Comment-only "fix": the title says it fixes something, but the diff only changes comments or docstrings.

Model output left in the code

A diff that adds raw model output, such as a <think> reasoning tag, a chat-template token or a line like "As an AI language model", is a scored signal. It moves an otherwise clean PR to Worth a closer look: it usually means generated output was committed without a careful read.

Build & test runs (paid plans, public repositories)

On paid plans, for public repositories, GitAlert can also build the project and run its existing tests in an isolated sandbox, on the base commit and on the pull request's head, and report whether the change broke something that worked before. It only does this when it can work out how to run the tests without any configuration from you. Sandbox runs are in beta and are not available on every plan yet. See Sandbox build & test runs for exactly when they happen and how your code is protected.