Repository navigation
Adopt gh actions-lock for GitHub Actions - #2998
Conversation
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.
Merging this PR will not alter performance
Comparing Footnotes
|
There was a problem hiding this comment.
🟡 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
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2998 +/- ##
=======================================
Coverage 99.76% 99.76%
=======================================
Files 300 300
Lines 26430 26430
=======================================
Hits 26368 26368
Misses 62 62
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|

What does this implement/fix?
Adopts
github/gh-actions-lock: workflows keep version tags inuses:while the pinned commit SHAs live in.github/workflows/actions.lock. Adds averify-lockfileworkflow that runsgh actions-lock --verifyon PRs and pushes tomain, un-ignores the lockfile in.gitignore(the repo ignores*.lock), and updates the workflow-conventions note inCLAUDE.md.Related issue or feature (if applicable):
Types of changes
bugfixnew-featureenhancementbreaking-changerefactordocsmaintenancecidependenciesFrontend coordination
Checklist
ruff,codespell, yaml/json/python checks).tests/where applicable.components.index.json/definitions/components/*.jsonhave not been hand-edited (regenerate viascript/sync_components.pyif a sync is needed).docs/ARCHITECTURE.mdand/ordocs/API.md.