16 Commits

Author SHA1 Message Date
pm 21123e6149 Merge pull request 'test ci/cd titulo v2' (#23) from teste-bloqueio into main
DevSecOps Enterprise Pipeline / security-gate-and-deploy (push) Successful in 1m42s
Reviewed-on: #23
2026-06-13 14:07:33 +00:00
pm ad08cda20e Merge pull request 'test ci/cd titulo' (#22) from teste-bloqueio into main
DevSecOps Enterprise Pipeline / security-gate-and-deploy (push) Successful in 1m38s
Reviewed-on: #22
2026-06-13 13:56:22 +00:00
pm 3bfccdeca6 Merge pull request 'owasp zap config v16' (#21) from teste-bloqueio into main
DevSecOps Enterprise Pipeline / security-gate-and-deploy (push) Successful in 1m34s
Reviewed-on: #21
2026-06-13 10:44:17 +00:00
pm 007678a44d Merge pull request 'owasp zap config v15' (#20) from teste-bloqueio into main
DevSecOps Enterprise Pipeline / security-gate-and-deploy (push) Failing after 1m28s
Reviewed-on: #20
2026-06-13 10:13:50 +00:00
pm 1c27802143 Merge pull request 'owasp zap config v14' (#19) from teste-bloqueio into main
DevSecOps Enterprise Pipeline / security-gate-and-deploy (push) Successful in 1m35s
Reviewed-on: #19
2026-06-13 10:08:28 +00:00
pm e7629428df Merge pull request 'owasp zap config v13' (#18) from teste-bloqueio into main
DevSecOps Enterprise Pipeline / security-gate-and-deploy (push) Successful in 1m35s
Reviewed-on: #18
2026-06-13 10:00:14 +00:00
pm c78f05a818 Merge pull request 'owasp zap config v12' (#17) from teste-bloqueio into main
DevSecOps Enterprise Pipeline / security-gate-and-deploy (push) Successful in 1m34s
Reviewed-on: #17
2026-06-13 09:43:59 +00:00
pm a74380b072 Merge pull request 'owasp zap config v11' (#16) from teste-bloqueio into main
DevSecOps Enterprise Pipeline / security-gate-and-deploy (push) Failing after 54s
Reviewed-on: #16
2026-06-13 09:38:41 +00:00
pm b6691b241b Merge pull request 'owasp zap config v9' (#15) from teste-bloqueio into main
DevSecOps Enterprise Pipeline / security-gate-and-deploy (push) Successful in 59s
Reviewed-on: #15
2026-06-13 09:30:21 +00:00
pm 313f93a05d Merge pull request 'owasp zap config v8' (#14) from teste-bloqueio into main
DevSecOps Enterprise Pipeline / security-gate-and-deploy (push) Successful in 1m2s
Reviewed-on: #14
2026-06-13 09:14:34 +00:00
pm 892d17f8dc Merge pull request 'owasp zap config v7' (#13) from teste-bloqueio into main
DevSecOps Enterprise Pipeline / security-gate-and-deploy (push) Failing after 53s
Reviewed-on: #13
2026-06-13 00:02:04 +00:00
pm 87a6c63ac8 Merge pull request 'owasp zap config v6' (#12) from teste-bloqueio into main
DevSecOps Enterprise Pipeline / security-gate-and-deploy (push) Failing after 52s
Reviewed-on: #12
2026-06-12 23:57:30 +00:00
pm 0a92b7f4a0 Merge pull request 'owasp zap config v3' (#11) from teste-bloqueio into main
DevSecOps Enterprise Pipeline / security-gate-and-deploy (push) Failing after 43s
Reviewed-on: #11
2026-06-12 23:52:59 +00:00
pm a1aadf130d Merge pull request 'owasp zap config v2' (#9) from teste-bloqueio into main
DevSecOps Enterprise Pipeline / security-gate-and-deploy (push) Failing after 42s
Reviewed-on: #9
2026-06-12 23:42:12 +00:00
pm dd94920955 Merge pull request 'owasp zap config' (#8) from teste-bloqueio into main
DevSecOps Enterprise Pipeline / security-gate-and-deploy (push) Failing after 53s
Reviewed-on: #8
2026-06-12 23:36:56 +00:00
pm 54a52d9ebe Merge pull request 'feat: adiciona nova funcionalidade (com erro oculto)' (#7) from teste-bloqueio into main
DevSecOps Enterprise Pipeline / security-gate-and-deploy (push) Successful in 1m30s
Reviewed-on: #7
2026-06-12 23:26:14 +00:00
2 changed files with 17 additions and 2 deletions
+16 -1
View File
@@ -95,7 +95,17 @@ jobs:
exit 0 exit 0
fi fi
- name: 6. Deploy em Produção (SSH) - name: 6.1. Enviar Relatório ZAP para o Servidor (SCP)
if: github.event_name == 'push'
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: "qatests/report.html"
target: "/tmp"
- name: 6.2. Deploy em Produção (SSH)
if: github.event_name == 'push' if: github.event_name == 'push'
uses: appleboy/ssh-action@master uses: appleboy/ssh-action@master
with: with:
@@ -103,6 +113,7 @@ jobs:
username: ${{ secrets.SSH_USER }} username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }} key: ${{ secrets.SSH_PRIVATE_KEY }}
script: | script: |
# ADICIONADO: Cancela o deploy imediatamente se algum comando falhar!
set -e set -e
echo ">>> 1. A navegar para a pasta do projeto no servidor..." echo ">>> 1. A navegar para a pasta do projeto no servidor..."
@@ -118,6 +129,10 @@ jobs:
docker rm -f portal-corporativo || true docker rm -f portal-corporativo || true
docker run -d -p 3000:3000 --name portal-corporativo --restart unless-stopped apex-solutions:prod docker run -d -p 3000:3000 --name portal-corporativo --restart unless-stopped apex-solutions:prod
echo ">>> 5. A publicar o relatório de segurança transparente..."
sleep 5
docker cp /tmp/qatests/report.html portal-corporativo:/usr/src/app/frontend/zap-report.html || true
echo "✅ Deploy concluído com sucesso! A aplicação está no ar." echo "✅ Deploy concluído com sucesso! A aplicação está no ar."
- name: 7. Archive ZAP Report - name: 7. Archive ZAP Report
+1 -1
View File
@@ -33,7 +33,7 @@
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-24 lg:py-32"> <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-24 lg:py-32">
<h1 class="text-4xl tracking-tight font-extrabold text-gray-900 sm:text-5xl md:text-6xl"> <h1 class="text-4xl tracking-tight font-extrabold text-gray-900 sm:text-5xl md:text-6xl">
<span class="block">Innovative Solutions for</span> <span class="block">Innovative Solutions for</span>
<span class="block text-blue-600">Modern website-secure</span> <span class="block text-blue-600">Modern Busines - Test CI/CD</span>
</h1> </h1>
<p class="mt-6 max-w-2xl text-lg text-gray-500 leading-relaxed"> <p class="mt-6 max-w-2xl text-lg text-gray-500 leading-relaxed">
At Apex Solutions, we deliver high-quality business consulting, technology services, and strategic insights. We help organizations across the globe achieve their goals through operational excellence and digital transformation. At Apex Solutions, we deliver high-quality business consulting, technology services, and strategic insights. We help organizations across the globe achieve their goals through operational excellence and digital transformation.