mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-11-29 03:43:04 +01:00
ci: lock workflow action dependencies
Add .github/workflows/actions.lock, generated by gh actions-lock. It records the commit for every action the workflows use, including actions called by other actions. Workflows now reference release tags and the lockfile holds the commit that runs. Verify the lockfile in the Workflow lint job so a workflow change that skips regenerating it fails the pull request. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
6f4b39ce87
commit
7809dfb390
8 files changed
+133
-21
No files matched your search
@@ -16,6 +16,27 @@ Keep the local jactionlint version aligned with the pinned action in `lint.yml`.
|
||||
There is no baseline: new findings fail the check. Any rule exception should be
|
||||
limited to the relevant line and explain why it is needed.
|
||||
|
||||
## Action lockfile
|
||||
|
||||
`actions.lock` records the commit for every action the workflows use, including
|
||||
actions called by other actions. Workflows reference release tags; the lockfile
|
||||
holds the commit that runs. Do not edit it by hand.
|
||||
|
||||
After adding a workflow or changing any `uses:` line, regenerate it with the
|
||||
[`gh actions-lock`](https://github.com/github/gh-actions-lock) extension and
|
||||
commit the result:
|
||||
|
||||
```sh
|
||||
gh extension install github/gh-actions-lock
|
||||
gh actions-lock
|
||||
```
|
||||
|
||||
Dependabot updates the lockfile entry in the same pull request when it bumps an
|
||||
action.
|
||||
|
||||
The `Workflow lint` workflow verifies the lockfile on every pull request and
|
||||
fails when it does not match the workflows.
|
||||
|
||||
## Project tracking
|
||||
|
||||
`project.yml` intentionally uses `pull_request_target` so the GitHub App can add
|
||||
|
||||
Reference in new issue
Block a user