Skip to content

Adopt gh actions-lock for GitHub Actions - #2998

Merged
Jesse Hills (jesserockz) merged 3 commits into
mainfrom
jesserockz-2026-839
Nov 2, 2026
Merged

Jesse Hills (jesserockz) merged 3 commits into
mainfrom
jesserockz-2026-839

Conversation

@jesserockz

Copy link
Copy Markdown
Member

What does this implement/fix?

Adopts github/gh-actions-lock: workflows keep version tags in uses: while the pinned commit SHAs live in .github/workflows/actions.lock. Adds a verify-lockfile workflow that runs gh actions-lock --verify on PRs and pushes to main, un-ignores the lockfile in .gitignore (the repo ignores *.lock), and updates the workflow-conventions note in CLAUDE.md.

Related issue or feature (if applicable):

  • fixes N/A

Types of changes

  • Bugfix (non-breaking change which fixes an issue) — bugfix
  • New feature (non-breaking change which adds functionality) — new-feature
  • Enhancement to an existing feature — enhancement
  • Breaking change (fix or feature that would cause existing functionality to not work as expected) — breaking-change
  • Refactor (no behaviour change) — refactor
  • Documentation only — docs
  • Maintenance / chore — maintenance
  • CI / workflow change — ci
  • Dependencies bump — dependencies

Frontend coordination

  • No frontend change needed
  • Companion frontend PR: esphome/device-builder-frontend#

Checklist

  • The code change is tested and works locally.
  • Pre-commit hooks pass (ruff, codespell, yaml/json/python checks).
  • Tests have been added or updated under tests/ where applicable.
  • components.index.json / definitions/components/*.json have not been hand-edited (regenerate via script/sync_components.py if a sync is needed).
  • Architecture-level changes are reflected in docs/ARCHITECTURE.md and/or docs/API.md.

Workflows keep version tags in uses: while commit SHAs live in .github/workflows/actions.lock. Add a verify-lockfile workflow that runs gh actions-lock --verify on PRs and pushes to main.
@jesserockz Jesse Hills (jesserockz) added the ci Continuous integration / build / release tooling label Nov 2, 2026
Copilot AI balanced review requested due to automatic review settings November 2, 2026 00:48
@codspeed

codspeed Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 28 untouched benchmarks
⏩ 1 skipped benchmark1


Comparing jesserockz-2026-839 (25615f5) with main (32d5a59)

Open in CodSpeed

Footnotes

  1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports. ↩

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The board-catalog workflow’s lock entry omits dependencies required by its setup action, causing board-manifest regeneration to fail under lockfile enforcement.

1 open issue
What changed in this PR

Adopts gh actions-lock across the repository’s CI and release automation, separating readable action version tags from pinned commit hashes.

Changes:

  • Replaces inline SHA references with version tags and migrates most local action calls to $/ references.
  • Adds a dependency lockfile and verification workflow for pull requests and pushes to main.
  • Allows the lockfile in Git and documents the update process.
File Description
CLAUDE.md Documents lockfile-based action pinning.
.gitignore Allows tracking the actions lockfile.
.github/​workflows/​windows-real-compile.yml Migrates Windows compile action references.
.github/​workflows/​verify-lockfile.yml Adds automated lockfile verification.
.github/​workflows/​test.yml Migrates test, coverage, and benchmark action references.
.github/​workflows/​sync-on-esphome-release.yml Uses a version tag for sync dispatch.
.github/​workflows/​sync-device-catalog.yml Migrates device catalog sync action references.
.github/​workflows/​sync-component-catalog.yml Migrates component catalog sync action references.
.github/​workflows/​release.yml Migrates build, release, and publishing action references.
.github/​workflows/​regen-board-catalog.yml Converts external actions to version tags.
.github/​workflows/​real-compile-tests.yml Migrates compile-test action references.
.github/​workflows/​pr-labels.yaml Uses a version tag for PR labeling.
.github/​workflows/​pages.yml Migrates Pages build and deployment action references.
.github/​workflows/​pages-ci.yml Converts Pages CI actions to version tags.
.github/​workflows/​draft-next-releases.yml Migrates release-drafting action references.
.github/​workflows/​device-status-followup.yml Uses a version tag for follow-up automation.
.github/​workflows/​close-uneditable-fork-pr.yml Uses a version tag for fork-PR automation.
.github/​workflows/​check-board-images.yml Migrates board-image validation action references.
.github/​workflows/​bump-esphome-docker-pin.yml Converts Docker-pin automation actions to version tags.
.github/​workflows/​auto-release.yml Migrates automatic release action references.
.github/​workflows/​actions.lock Records workflow dependencies and pinned commits.
.github/​actions/​setup-uv-python/​action.yml Converts setup and cache actions to version tags.
.github/​actions/​restore-or-build-venv/​action.yml Migrates nested setup and cache action references.
.github/​actions/​generate-release-notes/​action.yml Uses a $/ reference for Python setup.

Review effort: Balanced

Comment thread .github/workflows/actions.lock Resolved
@codecov

codecov Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.76%. Comparing base (32d5a59) to head (25615f5).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2998   +/-   ##
=======================================
  Coverage   99.76%   99.76%           
=======================================
  Files         300      300           
  Lines       26430    26430           
=======================================
  Hits        26368    26368           
  Misses         62       62           
Flag Coverage Δ
py3.12 99.73% <ø> (ø)
py3.14 99.61% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jesserockz
Jesse Hills (jesserockz) merged commit c3d612e into main Nov 2, 2026
32 checks passed
@jesserockz
Jesse Hills (jesserockz) deleted the jesserockz-2026-839 branch November 2, 2026 03:46
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

ci Continuous integration / build / release tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants