fix(ci): corregir indentación YAML rota en el step de Semgrep
El python3 -c "..." embebido dentro del run: | tenía el código pegado
a columna 0, por debajo de la indentación del bloque YAML -- eso corta
el block scalar ahí mismo y Gitea terminaba ignorando el workflow
completo ("could not find expected ':'"), silenciosamente, desde el
commit de Semgrep.
Validado con un parser YAML real (no solo con builds de Docker) y
bash -n sobre los 20 steps del archivo.
This commit is contained in:
@@ -289,13 +289,13 @@ jobs:
|
|||||||
-w /src \
|
-w /src \
|
||||||
"${SEMGREP_IMAGE}" \
|
"${SEMGREP_IMAGE}" \
|
||||||
python3 -c "
|
python3 -c "
|
||||||
import json
|
import json
|
||||||
data = json.load(open('semgrep-report.json'))
|
data = json.load(open('semgrep-report.json'))
|
||||||
results = data.get('results', [])
|
results = data.get('results', [])
|
||||||
print(f'Hallazgos: {len(results)}')
|
print(f'Hallazgos: {len(results)}')
|
||||||
for r in results:
|
for r in results:
|
||||||
print(f\" [{r['extra']['severity']}] {r['check_id']} - {r['path']}:{r['start']['line']}\")
|
print(f\" [{r['extra']['severity']}] {r['check_id']} - {r['path']}:{r['start']['line']}\")
|
||||||
"
|
"
|
||||||
|
|
||||||
- name: Publicar reporte de Semgrep
|
- name: Publicar reporte de Semgrep
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
Reference in New Issue
Block a user