diff --git a/.github/workflows/zaproxy.yml b/.github/workflows/zaproxy.yml index e9ec364..4c2af7a 100644 --- a/.github/workflows/zaproxy.yml +++ b/.github/workflows/zaproxy.yml @@ -10,12 +10,11 @@ jobs: strategy: fail-fast: false matrix: - cluster_ip: [18.185.179.187] - port: [31546,31547] + port: [31547] steps: - name: ZAP Scan uses: zaproxy/action-full-scan@v0.11.0 with: - target: http://${{ matrix.cluster_ip }}:${{ matrix.port}} - artifact_name: zap_scan_${{ matrix.cluster_ip }}_${{ matrix.port }} + target: http://${{ secrets.CLUSTER_IP }}:${{ matrix.port}} + artifact_name: zap_scan_${{ secrets.CLUSTER_IP }}_${{ matrix.port }} diff --git a/kube/apps/frontend-service.yaml b/kube/apps/frontend-service.yaml index 995e972..e2a7b54 100644 --- a/kube/apps/frontend-service.yaml +++ b/kube/apps/frontend-service.yaml @@ -14,6 +14,7 @@ spec: ports: # the port that this service should serve on - port: 80 + nodePort: 31547 selector: app: guestbook tier: frontend