Repository navigation
ci: create actions lockfile - #10072
ArthurKun21 wants to merge 2 commits into
Conversation
Head branch was pushed to by a user without write access
b1a1901 to
3c94378
Compare
|
Im not sure i see any upside to this but i could misinterpret this. It is more meant for workflows that use something like uses: actions/checkout@v3 but we dont use that anymore. so the only maybe upside would be that its all maintained in one file? but the downside to that is that dependabot will conflict allot on PR's? |
It won't be using the
yea it is now maintained on one file and it would do the checking by itself like the current commit sha so you can just use the another upside was checking the nested dependencies like for example https://github.com/ArthurKun21/FreeTube/blob/3c94378c06b0829bf9cc29ac46f0ce9e4c0316fc/.github/workflows/actions.lock#L49-L55 'actions-rust-lang/setup-rust-toolchain@v2.0.1':
ref: 'v2.0.1'
commit: 'sha1-a188e68d0fd2bd36ad51dccb2b07ba6e75105f30'
owner_id: 103899579
repo_id: 482610590
uses:
- 'swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0'
the dependabot is already handling it well enough, this is a sample from my project https://github.com/ArthurKun21/fga-data-parser/pull/33/changes
|
Head branch was pushed to by a user without write access
3c94378 to
02d0f20
Compare
|
The biggest benefit of workflow lockfiles is ensuring dependencies are pinned to immutable commit SHAs. FreeTube already does this manually in its workflow YAML files. One of the benefits might be dependencies of dependencies but that's not really an issue for us As this feature is currently in beta, we would like to wait at least a few months after it has reached 1.0 Therefore im closing this PR for the moment and we'll reevaluate when this feature is considered stable |
Pull request was closed

Pull Request Type
Related issue
Description
This essentially adds a lockfile for github actions to centralized the sha pinning for security and management.
Downside is that you need github cli and install the actions-lock extension. Every time you need to add a new step that needs github actions (e.g.
actions/checkout) you need to runAlso added the
.github/workflows/verify-lockfile.ymlthat runs every time the dev change the github workflow to remind you if you forgot to update the actions lockfilehttps://github.com/github/gh-actions-lock/blob/main/.github/workflows/verify-lockfile.yml
Screenshots
Testing
Desktop
Additional context
https://github.blog/changelog/2026-10-14-github-actions-workflow-lockfiles-in-public-preview/
https://github.com/cli/cli
https://github.com/github/gh-actions-lock