SonarQube Validation
DevSecOps Enterprise Pipeline / security-gate-and-deploy (pull_request) Failing after 13s

This commit is contained in:
pm
2026-06-16 00:40:19 +01:00
parent 6fc77e5569
commit fd94417c8d
3 changed files with 4 additions and 15 deletions
+3 -3
View File
@@ -23,9 +23,9 @@ app.get('/careers', (req, res) => res.sendFile(path.join(__dirname, '../frontend
app.get('/contact', (req, res) => res.sendFile(path.join(__dirname, '../frontend/contact.html')));
// ==========================================
// VULNERÁVEL (OWASP ZAP)
// VULNERÁVEL (OWASP ZAP) / SonarQube
// ==========================================
/*app.get('/api/search', (req, res) => {
app.get('/api/search', (req, res) => {
const termo = req.query.q || '';
// A vulnerabilidade crítica: devolver o input diretamente no HTML
res.send(`
@@ -37,7 +37,7 @@ app.get('/contact', (req, res) => res.sendFile(path.join(__dirname, '../frontend
</body>
</html>
`);
});*/
});
// Configuração do transporte de E-mail (Mocks de teste vs Produção)
let transporter;