Modificar .gitea/workflows/deploy.yaml
DevSecOps Enterprise Pipeline / security-gate-and-deploy (push) Failing after 1m33s
DevSecOps Enterprise Pipeline / security-gate-and-deploy (push) Failing after 1m33s
atualizar porta sandbox
This commit is contained in:
@@ -49,8 +49,8 @@ jobs:
|
|||||||
# Remover qualquer resíduo de sandbox anterior
|
# Remover qualquer resíduo de sandbox anterior
|
||||||
docker rm -f website-test-sandbox || true
|
docker rm -f website-test-sandbox || true
|
||||||
|
|
||||||
# Levantar a Sandbox na porta temporária 8080
|
# Levantar a Sandbox na porta temporária 8282
|
||||||
docker run -d --name website-test-sandbox -p 8080:80 nginx:alpine
|
docker run -d --name website-test-sandbox -p 8282:80 nginx:alpine
|
||||||
|
|
||||||
# Copiar o index.html atual para a Sandbox para poder ser testado
|
# Copiar o index.html atual para a Sandbox para poder ser testado
|
||||||
docker cp index.html website-test-sandbox:/usr/share/nginx/html/index.html
|
docker cp index.html website-test-sandbox:/usr/share/nginx/html/index.html
|
||||||
@@ -62,13 +62,13 @@ jobs:
|
|||||||
# ETAPA 3: DAST - TESTE DINÂMICO (OWASP ZAP)
|
# ETAPA 3: DAST - TESTE DINÂMICO (OWASP ZAP)
|
||||||
# ==========================================
|
# ==========================================
|
||||||
|
|
||||||
# Ataca a Sandbox (8080) e não a produção. Se encontrar falhas graves, a pipeline para aqui.
|
# Ataca a Sandbox (8282) e não a produção. Se encontrar falhas graves, a pipeline para aqui.
|
||||||
- name: OWASP ZAP Baseline Scan
|
- name: OWASP ZAP Baseline Scan
|
||||||
run: |
|
run: |
|
||||||
mkdir -p qatests
|
mkdir -p qatests
|
||||||
chmod 777 qatests
|
chmod 777 qatests
|
||||||
docker run --user root -v $(pwd)/qatests:/zap/wrk/:rw -t ghcr.io/zaproxy/zaproxy:stable zap-baseline.py \
|
docker run --user root -v $(pwd)/qatests:/zap/wrk/:rw -t ghcr.io/zaproxy/zaproxy:stable zap-baseline.py \
|
||||||
-t http://51.89.40.2:8080 \
|
-t http://51.89.40.2:8282 \
|
||||||
-r report.html
|
-r report.html
|
||||||
|
|
||||||
# Garante que a Sandbox é desmantelada mesmo que o passo do ZAP falhe
|
# Garante que a Sandbox é desmantelada mesmo que o passo do ZAP falhe
|
||||||
|
|||||||
Reference in New Issue
Block a user