diff --git a/.github/workflows/promptfoo-code-scan.yml b/.github/workflows/promptfoo-code-scan.yml new file mode 100644 index 0000000..21bdb55 --- /dev/null +++ b/.github/workflows/promptfoo-code-scan.yml @@ -0,0 +1,25 @@ +name: Promptfoo Code Scan + +on: + pull_request: + types: [opened, ready_for_review] + +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 +