From fd3be7314d0375b2ad6618fc43bb72f7d855b3c8 Mon Sep 17 00:00:00 2001 From: Robin Grell Date: Thu, 26 Nov 2026 19:28:00 -0600 Subject: [PATCH] ci: add a GitHub Actions lockfile .github/workflows/actions.lock pins every action, including the actions those actions use, to an exact commit. gh actions-lock moved the commit SHAs out of the uses: lines into the lockfile; the same commits stay pinned. verify-lockfile.yml checks the lockfile whenever something under .github changes. Co-Authored-By: Claude --- .github/workflows/actions.lock | 30 +++++++++++++++++++++++++++ .github/workflows/format.yml | 4 ++-- .github/workflows/typecheck.yml | 6 +++--- .github/workflows/verify-lockfile.yml | 23 ++++++++++++++++++++ 4 files changed, 58 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/actions.lock create mode 100644 .github/workflows/verify-lockfile.yml diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock new file mode 100644 index 0000000..916ce19 --- /dev/null +++ b/.github/workflows/actions.lock @@ -0,0 +1,30 @@ +# This file is machine-generated by `gh actions-lock`. +# Do not edit by hand; run `gh actions-lock` to update. +# Docs: https://gh.io/actions-lockfile +version: 'v0.0.3' +workflows: + '.github/workflows/format.yml': + - 'actions/checkout@v7.0.1' + - 'actions/setup-node@v7.1.0' + '.github/workflows/typecheck.yml': + - 'actions/checkout@v7.0.1' + - 'actions/setup-node@v7.1.0' + '.github/workflows/verify-lockfile.yml': + - 'actions/checkout@v7.0.1' + - 'github/gh-actions-lock@verify/v0.5.1' +dependencies: + 'actions/checkout@v7.0.1': + ref: 'v7.0.1' + commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1' + owner_id: 44036562 + repo_id: 197814629 + 'actions/setup-node@v7.1.0': + ref: 'v7.1.0' + commit: 'sha1-949feb2413d6458794dcd2491c4babbbce0c15c1' + owner_id: 44036562 + repo_id: 189476904 + 'github/gh-actions-lock@verify/v0.5.1': + ref: 'verify/v0.5.1' + commit: 'sha1-5fa07d19c267d19e29f4341f10fdf7f516375038' + owner_id: 9919 + repo_id: 1217640442 diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index e7bd85f..f2953a4 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -21,9 +21,9 @@ jobs: prettier: runs-on: ubuntu-latest steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/checkout@v7.0.1 - - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + - uses: actions/setup-node@v7.1.0 with: node-version: 'lts/*' cache: npm diff --git a/.github/workflows/typecheck.yml b/.github/workflows/typecheck.yml index b88b0c0..17e8ffd 100644 --- a/.github/workflows/typecheck.yml +++ b/.github/workflows/typecheck.yml @@ -26,7 +26,7 @@ jobs: outputs: recipes: ${{ steps.list.outputs.recipes }} steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/checkout@v7.0.1 - id: list run: | recipes=$(for d in */; do @@ -47,9 +47,9 @@ jobs: matrix: recipe: ${{ fromJson(needs.discover.outputs.recipes) }} steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/checkout@v7.0.1 - - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + - uses: actions/setup-node@v7.1.0 with: node-version: 'lts/*' cache: npm diff --git a/.github/workflows/verify-lockfile.yml b/.github/workflows/verify-lockfile.yml new file mode 100644 index 0000000..52ab294 --- /dev/null +++ b/.github/workflows/verify-lockfile.yml @@ -0,0 +1,23 @@ +name: Verify actions lockfile + +on: + pull_request: + paths: + - .github/** + push: + branches: + - main + paths: + - .github/** + +permissions: + contents: read + +jobs: + verify: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7.0.1 + with: + persist-credentials: false + - uses: github/gh-actions-lock@verify/v0.5.1