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
This commit was merged in pull request #5.
This commit is contained in:
pm
2026-06-11 22:06:36 +00:00
4 changed files with 4477 additions and 3 deletions
+10 -3
View File
@@ -79,12 +79,19 @@ jobs:
echo ">>> Atualizando Produção..." echo ">>> Atualizando Produção..."
docker rm -f portal-corporativo || true docker rm -f portal-corporativo || true
docker run -d -p 3000:3000 --name portal-corporativo apex-solutions:latest 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..." echo ">>> Publicando Relatório ZAP no servidor Web..."
docker cp qatests/report.html portal-corporativo:/usr/src/app/frontend/zap-report.html || true docker cp qatests/report.html portal-corporativo:/usr/src/app/frontend/zap-report.html || true
- name: 7. Archive ZAP Report (Gitea Artifacts) - name: 7. Archive ZAP Report (Gitea Artifacts)
if: always() if: always()
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
+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); });