Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .release-source.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"repository": "promptfoo/promptfoo",
"sourceSha": "2041ef9d6ac93637dc363f1f344b955b33f41d5d",
"sourceTag": "code-scan-action-0.2.2",
"sourceSha": "0d4978bace531463ebf200800f396fab9db4c21a",
"sourceTag": "code-scan-action-0.2.3",
"packagePath": "code-scan-action",
"version": "0.2.2"
"version": "0.2.3"
}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this package will be documented in this file.

## [0.2.3](https://github.com/promptfoo/promptfoo/compare/code-scan-action-0.2.2...code-scan-action-0.2.3) (2026-11-18)

### Bug Fixes

- **code-scan:** upgrade the filesystem MCP server to 2.3.0 ([#12185](https://github.com/promptfoo/promptfoo/issues/12185)) ([9e66910](https://github.com/promptfoo/promptfoo/commit/9e66910303f288c88bb49a8ce227b96789ab9400))
- **deps:** upgrade Undici in the CLI and scan action ([#12437](https://github.com/promptfoo/promptfoo/issues/12437)) ([f12d114](https://github.com/promptfoo/promptfoo/commit/f12d1144af0678ce5f88f39a439f4b89378ec5fd))

## [0.2.2](https://github.com/promptfoo/promptfoo/compare/code-scan-action-0.2.1...code-scan-action-0.2.2) (2026-10-08)

### Bug Fixes
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Once merged, the scanner will automatically run on future pull requests. Authent

The action installs the scanner before requesting its short-lived OIDC token, so slow installs do not expire the token before scanning.

The action runs the scanner with its bundled Node.js 24 runtime. Older action releases and workflow steps that run Promptfoo directly require Node.js `>=22.22.0` on the runner's `PATH`. Configure Node.js 24 LTS for compatibility:
The action runs the scanner with its bundled Node.js 24 runtime. For workflow steps that install and run Promptfoo directly, use Node.js 24 or later for full-repository scans. Diff-only scans also support Node.js 22.22 or later. Configure the runtime before installing Promptfoo:

```yaml
- name: Set up Node.js
Expand Down Expand Up @@ -68,6 +68,8 @@ The action sets `sarif-path` only when a scan actually completes, so keep the up
category: promptfoo-code-scan
```

Full scans can share eligible committed text files from the compared revision with the hosted scanner. Set `diffsOnly: true` in the file selected by `config-path` to share only the Git diff.

## Supply Chain Security

The hardening below applies to releases after v0.1.8; earlier releases resolve `promptfoo@latest` at runtime and predate the provenance attestation.
Expand All @@ -86,8 +88,8 @@ The hardening below applies to releases after v0.1.8; earlier releases resolve `
- **Verify build provenance.** The committed `dist/` bundle and the `action.yml` that selects the entrypoint are built and exported by the [promptfoo monorepo release workflow](https://github.com/promptfoo/promptfoo/blob/main/.github/workflows/release-please.yml), which publishes a signed build-provenance attestation for the exact artifact bytes. Verify a checkout of this repository with:

```bash
gh attestation verify dist/index.js --repo promptfoo/promptfoo
gh attestation verify action.yml --repo promptfoo/promptfoo
gh attestation verify dist/index.js --repo promptfoo/promptfoo --signer-workflow promptfoo/promptfoo/.github/workflows/release-please.yml --source-ref refs/heads/main
gh attestation verify action.yml --repo promptfoo/promptfoo --signer-workflow promptfoo/promptfoo/.github/workflows/release-please.yml --source-ref refs/heads/main
```

Additionally, every release PR in this repository is validated by a workflow that rebuilds `dist/` from the pinned monorepo source commit and fails on any byte difference.
Expand Down
Loading
Loading