Skip to content

Commit 604d74b

Browse files
committed
adding sleep command for container
1 parent fdd0b99 commit 604d74b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/unit-sec-test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ jobs:
5757
run: |
5858
docker build -t awesome-fastapi:${{ github.sha }} .
5959
docker run -d -p 8000:8000 awesome-fastapi:${{ github.sha }}
60+
61+
- name: Wait for Docker container to be ready
62+
run: sleep 30
6063

6164
# Run OWASP ZAP scan
6265
- name: zap scan
@@ -65,6 +68,6 @@ jobs:
6568
token: ${{ secrets.GITHUB_TOKEN }}
6669
docker_name: 'ghcr.io/zaproxy/zaproxy:stable'
6770
format: openapi
68-
target: 'http://localhost:8000'
71+
target: 'http://0.0.0.0:8000'
6972
rules_file_name: '.zap/rules.tsv'
7073
cmd_options: '-a'

0 commit comments

Comments
 (0)