Cybersecurity-Projects/.github
CarterPerez-dev 5f8096615e ci: two linters wearing the same name are not one gate
The local hook pinned ruff to v0.15.1. CI ran a bare `pip install ruff`
and got whatever astral had shipped that morning. Those are not the same
checker, so `just lint` passing locally said nothing about CI, and the
gap widened on astral's release schedule rather than on ours.

That is exactly how dlp-scanner went red: 0.16.0 stabilized PLR0917 out
of preview, CI adopted it unasked, and four signatures failed a rule the
local hook had never once run.

Pin CI to the rev in .pre-commit-config.yaml instead of hardcoding a
second version here. The hook rev is now the only place a ruff version
is written, so bumping it moves both sides in the same commit and the
two can no longer disagree. If that rev ever goes missing or stops
looking like a version, the step exits non-zero rather than falling
back to unpinned - both failure modes were tested.

Bump the pin 0.15.1 -> 0.16.1, which is the version CI was already
silently using. Censused first: all 18 ruff projects pass under 0.16.1,
and the freshly built hook env reports 0.16.1 at the binary and still
catches the original four errors in an unfixed tree.
2026-07-31 19:13:44 -04:00
..
ISSUE_TEMPLATE Create project_submission.yml 2025-11-12 08:39:06 -05:00
learn-folder-template Phase 3.1: Create learn/ folder template 2026-01-31 01:05:28 -05:00
workflows ci: two linters wearing the same name are not one gate 2026-07-31 19:13:44 -04:00
CHANGELOG.rst move docs to .github/ 2026-02-11 07:52:29 -05:00
CODE_OF_CONDUCT.md move docs to .github/ 2026-02-11 07:52:29 -05:00
CONTRIBUTING.md Revise educational documentation requirements 2026-02-20 06:07:21 -05:00
FUNDING.yml Update FUNDING.yml 2026-06-30 09:39:03 -04:00
PULL_REQUEST_TEMPLATE.md Update pull request template to remove project requirements 2026-02-20 06:05:42 -05:00
SECURITY.md move docs to .github/ 2026-02-11 07:52:29 -05:00
dependabot.yml docker-security-audit complete - added go lint and dependabot 2026-01-02 11:24:04 -05:00
secret_scanning.yml feat: Complete Go secrets scanner - Portia 2026-02-22 20:02:38 -05:00