CI e installatore: commenti degli script in inglese (#43)

La regola del progetto è «codice e commenti in inglese; interfaccia, documenti
e messaggi in italiano», e gli script di .gitea/ (script e flussi), di
installer/ e docker/entrypoint.sh avevano ancora i commenti in italiano
(decisione di Alberto del 29 novembre 2026). Cambiano solo i commenti: i
messaggi che una persona legge (echo, ::warning::, ::error::, nomi dei passi,
note della release) restano in italiano e nessun comando cambia. I programmi
awk e gli script finti delle prove erano già in inglese.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-29 12:03:13 +01:00
1 parent f48384b7d4
commit 009e7d6710
18 files changed
+496 -495

No files matched your search

+9 -8
View File
@@ -1,14 +1,15 @@
#!/usr/bin/env bash
# Cerca segreti (gettoni, chiavi, password) con gitleaks, a versione fissa (strumento.sh), in tutta la storia del
# commit verificato: ogni commit da cui discende, non solo l'ultimo. Ogni ramo si controlla al suo push (main a ogni
# unione), così un rilievo su un ramo non blocca gli altri. Un segreto non compare mai per intero: --redact lo
# sostituisce con REDACTED nel registro e nel rapporto, e qui si stampano solo regola, file, riga, commit e impronta.
# Looks for secrets (tokens, keys, passwords) with gitleaks, at a fixed version (strumento.sh), in the whole history
# of the commit being verified: every commit it descends from, not only the last one. Each branch is checked on its
# own push (main at every merge), so a finding on one branch does not block the others. A secret never appears in
# full: --redact replaces it with REDACTED in the log and in the report, and here only rule, file, line, commit and
# fingerprint are printed.
#
# .gitea/scripts/segreti.sh [cartella del rapporto]
#
# Che cosa fare con un rilievo: docs/processo.md, «Rilievi di sicurezza». In breve: un segreto vero si revoca subito
# (toglierlo dalla storia non basta); un falso allarme già controllato (un dato di prova finto) si mette in
# .gitleaksignore con la sua impronta e, sulla riga sopra, un commento che dice che cos'è e chi l'ha controllato.
# What to do with a finding: docs/processo.md, «Rilievi di sicurezza». In short: a real secret is revoked at once
# (removing it from the history is not enough); a false alarm already checked (fake test data) goes into
# .gitleaksignore with its fingerprint and, on the line above, a comment saying what it is and who checked it.
set -euo pipefail
radice="$(git rev-parse --show-toplevel)"
@@ -37,7 +38,7 @@ if ((stato == 0)); then
exit 0
fi
# Il riassunto con il lettore JSON nostro (json.sh, awk): niente jq.
# The summary with our own JSON reader (json.sh, awk): no jq.
if [[ -s "$rapporto" ]] \
&& rilievi=$(bash "$radice/.gitea/scripts/json.sh" campi "*" RuleID,File,StartLine,Commit,Fingerprint "$rapporto"); then
quanti=0