ci: adicionar instalacao do nodejs para o linter
DevSecOps Enterprise Pipeline / security-gate (push) Successful in 1m0s
DevSecOps Enterprise Pipeline / deploy (push) Failing after 3s

This commit is contained in:
2026-05-08 10:26:53 +01:00
parent 10c81592c0
commit 071463a175
+7 -2
View File
@@ -25,10 +25,15 @@ jobs:
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
trivy image --severity HIGH,CRITICAL nginx:alpine trivy image --severity HIGH,CRITICAL nginx:alpine
# 3. LINTING & QUALIDADE # 3. LINTING & QUALIDADE
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: HTML/CSS Linter - name: HTML/CSS Linter
run: | run: |
sudo npm install -g htmlhint stylelint stylelint-config-standard npm install -g htmlhint stylelint stylelint-config-standard
htmlhint index.html htmlhint index.html
# Adiciona validação de CSS se tiveres ficheiros .css # Adiciona validação de CSS se tiveres ficheiros .css