From 2a775d2c6a25f28ba61edcdf9c007813613ef76d Mon Sep 17 00:00:00 2001 From: pedro Date: Fri, 8 May 2026 10:30:48 +0100 Subject: [PATCH] ci: usar docker para o html linter --- .gitea/workflows/deploy.yaml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 9fe9166..a2ced60 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -12,7 +12,7 @@ jobs: with: fetch-depth: 0 - # 1. SECRET SCANNING (Desativado temporariamente para testar o resto) + # 1. SECRET SCANNING (Desativado temporariamente) #- name: Gitleaks Scan # run: | # curl -sL https://github.com/gitleaks/gitleaks/releases/download/v8.18.2/gitleaks_8.18.2_linux_x64.tar.gz | tar -xz -C /tmp @@ -24,16 +24,10 @@ jobs: 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 - # 3. LINTING & QUALIDADE (Com Node.js adicionado e sem sudo) - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version: '20' - - - name: HTML/CSS Linter + # 3. LINTING & QUALIDADE (Usando uma imagem Docker oficial com HTMLHint já instalado) + - name: HTML Linter (Docker) run: | - npm install -g htmlhint stylelint stylelint-config-standard - htmlhint index.html + docker run --rm -v ${{ github.workspace }}:/web tmknom/htmlhint htmlhint /web/index.html # 4. SAST - Análise de Código com SonarQube - name: SonarQube Analysis