Z204-forbidden-term — FORBIDDEN_TERM
Z-Code: Z204 FORBIDDEN_TERM · Engine: standalone · Exit: 2
zenzic check security
✘ POLICY VIOLATION DETECTED
xFinding: Forbidden term detected — remove from documentation: 'ProjectX'
xLocation: docs/index.md:11
xTerm: ProjectX
Action: Remove this term from the documentation or update the forbidden_patterns list in .zenzic.local.toml.
✘ POLICY VIOLATION DETECTED
xFinding: Forbidden term detected — remove from documentation:
'staging.internal.corp'
xLocation: docs/index.md:15
xTerm: staging.internal.corp
Action: Remove this term from the documentation or update the forbidden_patterns list in .zenzic.local.toml.
✘ POLICY VIOLATION DETECTED
xFinding: Forbidden term detected — remove from documentation: 'ProjectX'
xLocation: docs/index.md:20
xTerm: ProjectX
Action: Remove this term from the documentation or update the forbidden_patterns list in .zenzic.local.toml.
standalone - 1 file (1 docs, 0 assets) - 0.0s - 62 files/s
────────────────────────────────────────────────────────────────────────────────
Summary:✘ 3 policy violations- 1 file impacted✘ 0 errors⚠ 0 warningsi
0 info - 0 files with findings
FAILED: Policy violations detected. Exit code 2 is mandatory.
Refer to https://zenzic.dev/docs/reference/finding-codes for remediation · Try
'zenzic check --help' for options.
[ Suppression Audit: 0/30 (inline: 0, per-file: 0)
exit 2
Il Fixture
Il fixture si trova in examples/z204-forbidden-term/ nel repository Zenzic.
Contiene documenti che dimostrano la violazione Z204.
Eseguire l'Esempio
# Clona il repository Zenzic — nessuna installazione aggiuntiva richiesta
cd examples/z204-forbidden-term
uvx zenzic check all
Expected output:
✘ POLICY VIOLATION DETECTED
x Finding: Forbidden term detected — remove from documentation: 'ProjectX'
x Location: docs/index.md:11
x Term: ProjectX
Action: Remove this term from the documentation or update the
forbidden_patterns list in .zenzic.local.toml.
✘ POLICY VIOLATION DETECTED
x Finding: Forbidden term detected — remove from documentation:
'staging.internal.corp'
x Location: docs/index.md:15
x Term: staging.internal.corp
Action: Remove this term from the documentation or update the
forbidden_patterns list in .zenzic.local.toml.
✘ POLICY VIOLATION DETECTED
x Finding: Forbidden term detected — remove from documentation: 'ProjectX'
x Location: docs/index.md:20
x Term: ProjectX
Action: Remove this term from the documentation or update the
forbidden_patterns list in .zenzic.local.toml.
standalone - 1 file (1 docs, 0 assets) - 0.0s - 63 files/s
────────────────────────────────────────────────────────────────────────────────
Summary: x 3 policy violations - 1 file impacted x 0 errors ! 0 warnings i
0 info - 0 files with findings
FAILED: Policy violations detected. Exit code 2 is mandatory.
Refer to https://zenzic.dev/docs/reference/finding-codes for remediation · Try
'zenzic check --help' for options.
[ Suppression Audit: 0/30 (inline: 0, per-file: 0)
Exit code: 2
Interpretare l'Output
Il codice di errore Z204 indica un problema di tipo FORBIDDEN_TERM.
Questo errore o avviso viene generato da Zenzic quando viene rilevato un termine vietato specifico del progetto o un nome in codice interno riservato. Questi termini sono definiti in .zenzic.local.toml sotto la voce forbidden_patterns per prevenire la fuga di informazioni. In questo esempio specifico:
- Tipo di Scansione:
Privacy Gate - Severità:
Error (Non-suppressible) - Impatto: I termini vietati causano l'interruzione immediata dell'esecuzione con Exit Code 2 e azzerano lo stato di sicurezza del progetto.
Correggere la Violazione
Risolvi il problema come riportato da Zenzic.
Vedi Anche
- Riferimento Controlli — specifica completa della regola.