Skip to content
trendoviz

Promptfoo 0.126.0 adds full-repo scans, breaks formulas

Promptfoo 0.126.0 introduces full-repository code scans that can share committed text files with a hosted scanner, and restricts string formulas in `derivedMetrics` so some configurations stop evaluation before any test cases run.

Published

Overview

Promptfoo released version 0.126.0 and code-scan-action 0.2.3 on November 18, 2026. Both releases were signed with GitHub's verified GPG key B5690EEEBB952194.

The two changes with the clearest operational effects are the new full-repository scan mode and the tighter rules for derivedMetrics string formulas. Full-repository scans require Node.js 24 or later and can send eligible committed text files from the compared revision to Promptfoo's hosted scanner; setting diffsOnly: true limits sharing to the Git diff. Separately, formula strings containing function calls, property access, assignments, or more than 1,024 characters now halt evaluation before test cases run.

Why it matters

Teams that run full-repository scans need to know what the hosted scanner receives. The project states that working-tree changes and untracked files remain outside the shared snapshot, and that diffsOnly: true restricts sharing to the Git diff. Because the eligibility criteria for committed text files are not defined in the release notes, teams cannot determine from the notes alone whether a particular file would be shared.

The derivedMetrics change can also stop existing pipelines without running a single test case. That affects suites that already contain function calls, property access, assignments, or long formulas in string-based metrics.

Context

Promptfoo describes itself as a tool for AI testing, red teaming, pentesting, and vulnerability scanning, with declarative configuration and command-line and CI/CD integration. The project states that OpenAI and Anthropic use it, but no independent confirmation is available.

The release notes distinguish two scan scopes. A diff-only scan shares the Git diff. The full-repository mode introduced in 0.126.0 can share eligible committed text from the compared revision with the hosted scanner. The release notes do not define which committed text files are eligible for sharing.

Known, claimed, inferred

The release notes describe three distinct layers, and keeping them separate clarifies the exposure:

  • What is scanned locally: A full-repository scan operates on the compared revision. Working-tree changes and untracked files stay outside that snapshot, according to the project.
  • What is eligible for sharing: Eligible committed text files from the compared revision. The release notes do not define the eligibility criteria for these files.
  • What leaves the environment: The eligible committed text files that the hosted scanner receives. Diff-only mode narrows this to the Git diff.

The changes in code-scan-action 0.2.3 address parts of the release process itself. The action removes its temporary Promptfoo CLI installation after each scan, including failed scans, and its release workflow attests the executable payload before publishing. The project attributes the action's use of Undici 7.30.2 to fixes for credential handling across redirects and for response integrity; the release notes do not provide independent test results for those fixes.

Opportunities

Review scan scope before enabling full-repository mode. Diff-only sharing remains available through diffsOnly: true, which the project describes as limiting the shared input to the Git diff.

Rewrite restricted formulas before upgrading. The release notes give a direct replacement for a common function call: change max(a, b) to a > b ? a : b. Arithmetic, comparisons, ternaries, and score names such as __count remain supported. More complex logic can move into a function in a JavaScript configuration.

Plan the runtime change. Full-repository scans need Node.js 24 or later, while diff-only scans continue to work on Node.js 22.22 or later. The code-scan action itself runs the scanner with a bundled Node.js 24 runtime.

Risks

Repository content may reach a hosted service. Full-repository mode can share eligible committed text files from the compared revision with Promptfoo's hosted scanner. The exclusion of working-tree changes and untracked files is a project-stated scope limit, and the notes do not define which committed text files qualify as eligible.

Evaluation may halt before tests run. Formula strings with function calls, property access, assignments, or more than 1,024 characters stop the evaluation before any test case executes.

Runner compatibility may break full scans. CI environments without Node.js 24 cannot run full-repository scans, although diff-only scans still run on Node.js 22.22 or later.

Limitations & uncertainties

All technical details come from Promptfoo's own GitHub release notes. There are no independent security audits, third-party benchmarks, or user reports for these releases.

The notes give no CVE identifiers, severity ratings, or root-cause descriptions for the filesystem MCP server 2.3.0 patch, the Undici 7.30.2 updates, the derivedMetrics restrictions, or the credential-handling changes. The captured 0.126.0 changelog is truncated, so trailing entries are unknown. Pricing, licensing, and user counts are also absent. The reason the Discord invite in version 0.125.1 was restored is not documented.

Evidence & sources

  1. 1
  2. 2
    promptfoo/promptfoo 0.126.0
    ●github.comretrieved Nov 18, 2026
  3. 3
    promptfoo/promptfoo 0.125.1
    ●github.comretrieved Nov 18, 2026

Updates & corrections

  1. First published

Found an error? Report it.