Skip to content

Commit 71f29eb

Browse files
jbeckwith-oaicodex
andauthored
refactor(ci): add shared ci success (#41)
Co-authored-by: Codex <noreply@openai.com>
1 parent 0ea9e30 commit 71f29eb

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/promptfoo-code-scan.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Promptfoo Code Scan
22

33
on:
44
pull_request:
5-
types: [opened]
5+
types: [opened, synchronize, reopened]
66

77
jobs:
88
security-scan:
@@ -24,3 +24,20 @@ jobs:
2424
min-severity: medium
2525
guidance: |
2626
- Always comment on a block of code—never just a single line. And always make sure the start line comes before the end line.
27+
28+
ci-success:
29+
name: CI Success
30+
runs-on: ubuntu-latest
31+
needs: [security-scan]
32+
if: always()
33+
timeout-minutes: 5
34+
permissions:
35+
checks: read
36+
statuses: read
37+
38+
steps:
39+
- name: Wait for all PR checks to succeed
40+
uses: promptfoo/.github/.github/actions/ci-success@main
41+
with:
42+
github-token: ${{ secrets.GITHUB_TOKEN }}
43+
timeout-seconds: 300

0 commit comments

Comments
 (0)