How I built a lightweight GitHub Action to stop breaking API changes in CI
Описание и применение
Создана легковесная GitHub Action, которая быстро обнаруживает нарушения схемы OpenAPI в CI, завершается с ошибкой и добавляет аннотации к PR.
Задача
Breaking API contract changes slip into production, causing downstream services to fail.
Результат
The action detects breaking OpenAPI changes in ~50 ms, exits with code 1, and posts inline PR annotations, preventing broken contracts from merging.
Рабочий процесс
- Add a step to your GitHub Actions workflow:
- - name: Check for Breaking API Changes
- uses: Turya-Kalburgi/api-drift-sentinel@v1
- with:
- base-spec: 'openapi.yaml'
Доказательства
API Drift Sentinel— a zero‑config GitHub Action that detects breaking OpenAPI/Swagger schema changes directly in your PR workflows.
- Дата записи: 2026-09-21T13:15:59.108Z