Repository navigation
CI: controllo dei link e lint del Markdown - #1
Merged
Merged
Conversation
Workflow markdown.yml (un job, action pinnate a SHA, contents: read, persist-credentials: false, concurrency con cancel-in-progress): markdownlint-cli2 con una configurazione rilassata adattata ai testi attuali (MD051 controlla le ancore nella pagina, anche le <a name>), lychee offline per i link relativi fra file, lychee sui link esterni solo informativo (non fa fallire il job). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011Jc9UcLm2hqeCmsXPnfekW
A hung external check now stops after 3 minutes instead of failing the whole job at 10. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011Jc9UcX1vVxNZ8M3WQwL9W
The repository allows only actions owned by AleWayfarer or created by GitHub, so the workflow was rejected at startup. lychee v0.20.1 is now downloaded from its official release over HTTPS, checked against its sha256 and installed outside the checkout; same arguments as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011Jc9UcX1vVxNZ8M3WQwL9W
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Decisione di Alessio del 2026-11-10 (Piano, blocco 12, Sì): una CI che controlla i link e il lint del Markdown.
Cosa cambia
.github/workflows/markdown.yml, con un solo jobmarkdown:markdownlint-cli2@0.18.1usa la configurazione rilassata di.markdownlint-cli2.jsonc. Ho spento le regole di stile che i testi canonici non seguono (lunghezza delle righe, liste, HTML inline, più H1 per file e altre). Le regole che trovano difetti veri restano accese: tra queste MD051, che controlla le ancore nella pagina, comprese le<a name>nei titoli.1dd08bb0…9474) e installato fuori dal checkout. All'inizio il workflow usavalycheeverse/lychee-action, che il repository non ammette: sono permesse solo action di AleWayfarer o create da GitHub, per questo le due run del 10 e dell'11/11 erano finite instartup_failure. La policy resta com'è; ora il workflow usa soloactions/checkouteactions/setup-node.--offlinecontrolla i link relativi fra file. Sono esclusi i link../../issues, che su GitHub sono URL web e non file.continue-on-errore un timeout proprio di 3 minuti, che non fa mai fallire il job. linkedin.com è escluso.permissions: contents: read,persist-credentials: false,concurrencyconcancel-in-progress,timeout-minutes: 10, nessun segreto, nessuna interpolazione di input non fidati nei comandi.Controlli
da6affc(run https://github.com/AleWayfarer/digital-lean-framework/actions/runs/42950257418): markdownlint 48 file, 0 errori; sha256 di lycheeOK; link interni 141 OK, 0 errori; link esterni 169 OK, 0 errori.npx markdownlint-cli2@0.18.1exit 0;lychee --offline …exit 0; prove negative (ancora e file inesistenti) con exit 1 e 2.main, nessun conflitto.Review e security gate
pull_request_target), permessi minimi, SHA verificati.lychee-v0.20.1(stesso valore; l'archivio contiene solo l'eseguibilelychee); la release non pubblica un file di checksum da confrontare. Il download avviene solo in HTTPS e lo script si ferma se lo sha256 non corrisponde (set -euo pipefail,sha256sum --check --strict). Stesso schema già usato da Triage per gitleaks.Portata avanti da: sessione https://claude.ai/code/session_011Jc9UcX1vVxNZ8M3WQwL9W (dal 10/11 sera, su richiesta di Alessio; prima: routine Uscite quotidiane AleSet, sessione https://claude.ai/code/session_011Jc9UcLm2hqeCmsXPnfekW)
🤖 Generated with Claude Code
https://claude.ai/code/session_011Jc9UcX1vVxNZ8M3WQwL9W