Skip to content

Commit ec04136

Browse files
author
James Hiester
committed
adding health check
1 parent b7c7da5 commit ec04136

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/redteam-scan.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ jobs:
3737
sleep 10
3838
echo "Dev server started in background"
3939
40+
- name: Health check
41+
run: |
42+
curl -f http://localhost:${{ env.PORT }}/health || exit 1
43+
echo "✅ Health check passed"
44+
4045
- name: Install dependencies
4146
run: |
4247
npm install -g promptfoo@latest
@@ -55,7 +60,7 @@ jobs:
5560
5661
- name: Run redteam
5762
run: |
58-
promptfooredteam run -c "$SCAN_TEMPLATE_ID" -t "$TARGET_ID" \
63+
promptfoo redteam run -c "$SCAN_TEMPLATE_ID" -t "$TARGET_ID" \
5964
-c promptfooconfig.yaml \
6065
--share \
6166
-o results.json \

0 commit comments

Comments
 (0)