2 Commits

Author SHA1 Message Date
pm a416f686cf Merge branch 'main' into teste-pipeline
DevSecOps Enterprise Pipeline / security-gate-and-deploy (pull_request) Failing after 1m15s
2026-06-10 20:31:18 +00:00
pm 86a05dea2b chore: forcar diferenca para pull request 2026-06-10 21:16:15 +01:00
5 changed files with 5 additions and 4477 deletions
+3 -10
View File
@@ -79,19 +79,12 @@ jobs:
echo ">>> Atualizando Produção..."
docker rm -f portal-corporativo || true
docker run -d -p 3000:3000 --name portal-corporativo apex-solutions:latest
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
sleep 3
curl --silent --show-error --fail http://localhost:3000 || exit 1
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
@@ -0,0 +1,2 @@
# 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
@@ -1,20 +0,0 @@
{
"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
@@ -1 +0,0 @@
test('Pipeline flow: 1 + 1 deve ser 2', () => { expect(1 + 1).toBe(2); });