feat: implement issue #1617 — fix: open code scanning alerts in 6 repos without tracking issues (likely template-origin)

DO
14h ago
+145-10

Problem

fix: open code scanning alerts in 6 repos without tracking issues (likely template-origin)

From the issue: Six repos carry open code scanning alerts that no tracking issue covers. Four of them have 10-13 alerts each.

Risk

Low — changes automation shell logic under scripts/, covered by shellcheck (--severity=warning) and the bats suite.

Test plan

Tests added/updated: test/scripts/apply-repo-settings/apply-repo-settings.bats,test/scripts/compliance-audit/codeql-advanced-exception.bats. Verification: bash scripts/dev-lead-lint.sh (shellcheck --severity=warning) ran pre-commit; the bats suite runs in CI.

Rollback

Revert this PR. No non-revertible side effects (no tags, migrations, or external state).

Monitoring

This PR's Lint (shellcheck) and bats checks show pass/fail; watch subsequent dev-lead / pr-review runs for behavioral regressions.

Closes #1617