-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (37 loc) · 1.01 KB
/
promptfoo-code-scan.yml
File metadata and controls
43 lines (37 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Promptfoo Code Scan
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
security-scan:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Run Promptfoo Code Scan
uses: promptfoo/code-scan-action@v0
with:
min-severity: medium
guidance: |
- Always comment on a block of code—never just a single line. And always make sure the start line comes before the end line.
ci-success:
name: CI Success
runs-on: ubuntu-latest
needs: [security-scan]
if: always()
timeout-minutes: 5
permissions:
checks: read
statuses: read
steps:
- name: Wait for all PR checks to succeed
uses: promptfoo/.github/.github/actions/ci-success@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
timeout-seconds: 300