A script that shows what your CI badge is actually testing
Описание и применение
Скрипт ci_truth.py выявляет несоответствия между заявленными в CI‑workflow настройками и реальными условиями выполнения, позволяя обновлять конфигурации и делать бейджи более надёжными.
Задача
CI badge claims often misrepresent actual test conditions, leading to unnoticed failures or outdated configurations.
Результат
The script surfaces hidden CI misconfigurations, prompting timely updates and more accurate badges.
Рабочий процесс
- 1. Clone or run the script locally:
python3 ci_truth.py owner/repo [branch] - 2. The script fetches
.github/workflows/*.ymlvia the GitHub API (no token needed for public repos). - 3. It scans for Node version matrices, action usage, and install commands.
- 4. For each mismatch (EOL Node, outdated action, missing
--frozen-lockfile), it outputs a human‑readable warning. - 5. Review the output, update the workflow files, and commit changes to trigger a new CI run.
Доказательства
The badge had been green for years.
npm install instead of npm ci - lockfile drift cannot fail the build
- Дата записи: 2026-09-22T14:00:26.295Z