From b145bf6bfc6a176a6ed8292a0dfbe41a3e6b2278 Mon Sep 17 00:00:00 2001 From: "promptfoo-scanner[bot]" <240071912+promptfoo-scanner[bot]@users.noreply.github.com> Date: Fri, 27 Mar 2026 04:32:46 +0000 Subject: [PATCH] Add Promptfoo Code Scan workflow --- .github/workflows/promptfoo-code-scan.yml | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/promptfoo-code-scan.yml diff --git a/.github/workflows/promptfoo-code-scan.yml b/.github/workflows/promptfoo-code-scan.yml new file mode 100644 index 0000000..cb2149a --- /dev/null +++ b/.github/workflows/promptfoo-code-scan.yml @@ -0,0 +1,30 @@ +name: Promptfoo Code Scan + +on: + pull_request: + types: [opened, ready_for_review] + workflow_dispatch: + inputs: + pr_number: + description: 'PR number to scan' + required: true + +jobs: + security-scan: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + id-token: write + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Run Promptfoo Code Scan + uses: promptfoo/code-scan-action@v0 + with: + min-severity: medium +