6 Commits

Author SHA1 Message Date
pm 9d8aaeb8f2 Merge pull request 'feat: integra aplicacao portal corporativo real com backend e frontend' (#5) from base-aplicacao into main
DevSecOps Enterprise Pipeline / security-gate-and-deploy (push) Successful in 1m19s
Reviewed-on: #5
2026-06-11 22:06:36 +00:00
pm 7ec0a5136d Trigger pipeline rebuild
DevSecOps Enterprise Pipeline / security-gate-and-deploy (pull_request) Successful in 1m17s
2026-06-10 23:42:36 +01:00
pm 73f91a1261 fix: altera teste de integridade para executar internamente com wget
DevSecOps Enterprise Pipeline / security-gate-and-deploy (pull_request) Successful in 1m16s
2026-06-10 22:48:04 +01:00
pm aacc679600 fix: resolve problema de rede entre contentores no Gitea runner
DevSecOps Enterprise Pipeline / security-gate-and-deploy (pull_request) Failing after 3m36s
2026-06-10 22:40:43 +01:00
pm 2a62d54f81 fix: adiciona sleep e corrige tag da imagem docker
DevSecOps Enterprise Pipeline / security-gate-and-deploy (pull_request) Failing after 1m21s
2026-06-10 22:33:50 +01:00
pm eb99f05016 feat: integra aplicacao portal corporativo real com backend e frontend
DevSecOps Enterprise Pipeline / security-gate-and-deploy (pull_request) Failing after 1m13s
2026-06-10 22:26:52 +01:00
5 changed files with 4477 additions and 5 deletions
+10 -3
View File
@@ -79,12 +79,19 @@ jobs:
echo ">>> Atualizando Produção..."
docker rm -f portal-corporativo || true
docker run -d -p 3000:3000 --name portal-corporativo apex-solutions:latest
sleep 3
curl --silent --show-error --fail http://localhost:3000 || exit 1
echo ">>> Aguardando arranque do Node.js..."
sleep 5
echo ">>> Logs do Contentor (para despiste de erros):"
docker logs portal-corporativo
echo ">>> A testar integridade do servidor (Internamente via wget)..."
docker exec portal-corporativo wget --spider -S http://localhost:3000
echo ">>> Publicando Relatório ZAP no servidor Web..."
docker cp qatests/report.html portal-corporativo:/usr/src/app/frontend/zap-report.html || true
- name: 7. Archive ZAP Report (Gitea Artifacts)
if: always()
uses: actions/upload-artifact@v3
-2
View File
@@ -1,2 +0,0 @@
# Website Secure - Teste DevSecOps
Este é um teste para validar a proteção da branch main e a orquestração da pipeline.
+4446
View File
File diff suppressed because it is too large Load Diff
+20
View File
@@ -0,0 +1,20 @@
{
"name": "website-secure",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "jest"
},
"repository": {
"type": "git",
"url": "https://gitea.each-cs.com/pm/website-secure.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"type": "commonjs",
"devDependencies": {
"jest": "^30.4.2"
}
}
+1
View File
@@ -0,0 +1 @@
test('Pipeline flow: 1 + 1 deve ser 2', () => { expect(1 + 1).toBe(2); });