We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdd0b99 commit 9dfcae2Copy full SHA for 9dfcae2
.github/workflows/unit-sec-test.yml
@@ -56,7 +56,13 @@ jobs:
56
- name: Build Docker Image
57
run: |
58
docker build -t awesome-fastapi:${{ github.sha }} .
59
- docker run -d -p 8000:8000 awesome-fastapi:${{ github.sha }}
+ docker run -d -p 8080:8080 awesome-fastapi:${{ github.sha }}
60
+
61
+ - name: Wait for Docker container to be ready
62
+ run: sleep 30
63
64
+ - name: Confirm Docker container is running
65
+ run: docker ps
66
67
# Run OWASP ZAP scan
68
- name: zap scan
@@ -65,6 +71,6 @@ jobs:
71
token: ${{ secrets.GITHUB_TOKEN }}
72
docker_name: 'ghcr.io/zaproxy/zaproxy:stable'
73
format: openapi
- target: 'http://localhost:8000'
74
+ target: 'http://0.0.0.0:8080'
69
75
rules_file_name: '.zap/rules.tsv'
70
76
cmd_options: '-a'
0 commit comments