ci: lock workflow dependencies with GitHub's actions.lock

CO
3d ago
+90-20

Adds GitHub's workflow dependency lockfile. actions.lock records the commit behind every action the workflows use, so a moved tag can't change what runs. That includes release.yml, where KSXGitHub/github-actions-deploy-aur@v4.1.2 receives AUR_SSH_PRIVATE_KEY, goreleaser/goreleaser-action@v6 runs with GORELEASER_GITHUB_TOKEN, and aws-actions/configure-aws-credentials@v4 receives the AWS keys that push the CLI image.

  • Added .github/workflows/actions.lock, generated with gh actions-lock and checked with gh actions-lock --verify (all 4 workflows valid).
  • Action refs narrowed to exact releases, for example actions/checkout@v5.1.0 and goreleaser/goreleaser-action@v6.4.0. Only uses: lines change.
  • Two things stay outside the lockfile: goreleaser-action runs with version: latest, so the goreleaser binary is downloaded at its latest version on every release (an explicit version would close it), and github-actions-deploy-aur builds its container from a Dockerfile, whose base image a lockfile can't pin.

Found by Plumber's analysis, reviewed and submitted by me.