feat(devsecops): agregar Gitleaks al pipeline del frontend #19
@@ -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