Skip to content

ci: fix pre-commit EOF + TOC push permission#2

Merged
CaseyRo merged 1 commit into
mainfrom
fix/ci-unbreak-quickwins
Jul 9, 2026
Merged

ci: fix pre-commit EOF + TOC push permission#2
CaseyRo merged 1 commit into
mainfrom
fix/ci-unbreak-quickwins

Conversation

@CaseyRo

@CaseyRo CaseyRo commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Unbreaks two of the four failing CI workflows. Verified locally: pre-commit run --all-files is fully green.

Fixes

  • pre-commit (end-of-file-fixer): openspec/specs/options-flow/spec.md and runtime-range-controls/spec.md ended with a double trailing newline (a blank line at EOF); trimmed to a single newline.
  • TOC Generator: added permissions: contents: write to toc.yaml. It was failing with 403 — Permission to CaseyRo/adaptive-lighting.git denied to github-actions[bot] when pushing the generated TOC to main.

Not included (separate change)

pytest and Docker remain red — they share a deeper root: the tests were rewritten PHCC-style (pytest-homeassistant-custom-component, green locally at 164 passed) but CI still runs the upstream HA-core-checkout harness that doesn't install PHCC, and the Docker build dies on core/requirements_test_all.txt (HA dev moved it). That's a design-level harness decision, tracked separately.

Note: if permissions: contents: write still 403s, flip Settings → Actions → Workflow permissions to 'Read and write'.

- end-of-file-fixer: trim the double trailing newline on two openspec spec files so pre-commit passes (verified: pre-commit run --all-files is green).
- toc.yaml: add permissions.contents=write so the TOC generator's push to main stops 403-ing as github-actions[bot].

Does not touch the pytest/Docker core-checkout harness (PHCC migration) — that is a separate, design-level change.
@CaseyRo
CaseyRo merged commit f533970 into main Jul 9, 2026
4 of 24 checks passed
@CaseyRo
CaseyRo deleted the fix/ci-unbreak-quickwins branch July 9, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant