From 0a7816ed56eff19fb3db668fc16bde6e2cc6c7ab Mon Sep 17 00:00:00 2001 From: Robin Grell Date: Thu, 26 Nov 2026 19:28:01 -0600 Subject: [PATCH] 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 rewrote short tags to the full release they point to today. verify-lockfile.yml checks the lockfile whenever something under .github changes. Dependabot now updates the actions. Co-Authored-By: Claude --- .github/dependabot.yml | 6 +++ .github/workflows/actions.lock | 55 +++++++++++++++++++++++++++ .github/workflows/ci.yml | 4 +- .github/workflows/pages.yml | 10 ++--- .github/workflows/verify-lockfile.yml | 23 +++++++++++ 5 files changed, 91 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/actions.lock create mode 100644 .github/workflows/verify-lockfile.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index ff1a325..3e05477 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,3 +6,9 @@ updates: interval: daily allow: - dependency-type: direct + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + cooldown: + default-days: 7 diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock new file mode 100644 index 0000000..880bdda --- /dev/null +++ b/.github/workflows/actions.lock @@ -0,0 +1,55 @@ +# 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/ci.yml': + - 'actions/checkout@v4.4.0' + - 'ruby/setup-ruby@v1.345.0' + '.github/workflows/pages.yml': + - 'actions/checkout@v4.4.0' + - 'actions/configure-pages@v5.0.0' + - 'actions/deploy-pages@v4.0.5' + - 'actions/upload-pages-artifact@v3.0.1' + - 'ruby/setup-ruby@v1.345.0' + '.github/workflows/verify-lockfile.yml': + - 'actions/checkout@v4.4.0' + - 'github/gh-actions-lock@verify/v0.5.1' +dependencies: + 'actions/checkout@v4.4.0': + ref: 'v4.4.0' + commit: 'sha1-11d5960a326750d5838078e36cf38b85af677262' + owner_id: 44036562 + repo_id: 197814629 + 'actions/configure-pages@v5.0.0': + ref: 'v5.0.0' + commit: 'sha1-983d7736d9b0ae728b81ab479565c72886d7745b' + owner_id: 44036562 + repo_id: 513659658 + 'actions/deploy-pages@v4.0.5': + ref: 'v4.0.5' + commit: 'sha1-d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e' + owner_id: 44036562 + repo_id: 438112499 + 'actions/upload-artifact@v4': + ref: 'v4' + commit: 'sha1-ea165f8d65b6e75b540449e92b4886f43607fa02' + owner_id: 44036562 + repo_id: 192625955 + 'actions/upload-pages-artifact@v3.0.1': + ref: 'v3.0.1' + commit: 'sha1-56afc609e74202658d3ffba0e8f6dda462b719fa' + owner_id: 44036562 + repo_id: 496012378 + uses: + - 'actions/upload-artifact@v4' + 'github/gh-actions-lock@verify/v0.5.1': + ref: 'verify/v0.5.1' + commit: 'sha1-5fa07d19c267d19e29f4341f10fdf7f516375038' + owner_id: 9919 + repo_id: 1217640442 + 'ruby/setup-ruby@v1.345.0': + ref: 'v1.345.0' + commit: 'sha1-145243922b4465b78e04dd66294782c7de45901f' + owner_id: 210414 + repo_id: 231208785 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89b1b04..1bbdbb0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,9 +11,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v4.4.0 - name: Setup Ruby - uses: ruby/setup-ruby@v1 + uses: ruby/setup-ruby@v1.345.0 with: ruby-version: '3.3' # Not needed with a .ruby-version file bundler-cache: true # runs 'bundle install' and caches installed gems automatically diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index f175116..c45c23c 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -30,16 +30,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v4.4.0 - name: Setup Ruby - uses: ruby/setup-ruby@v1 + uses: ruby/setup-ruby@v1.345.0 with: ruby-version: '3.3' # Not needed with a .ruby-version file bundler-cache: true # runs 'bundle install' and caches installed gems automatically cache-version: 0 # Increment this number if you need to re-download cached gems - name: Setup Pages id: pages - uses: actions/configure-pages@v5 + uses: actions/configure-pages@v5.0.0 - name: Build with Jekyll # Outputs to the './_site' directory by default run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" @@ -47,7 +47,7 @@ jobs: JEKYLL_ENV: production - name: Upload artifact # Automatically uploads an artifact from the './_site' directory by default - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v3.0.1 # Deployment job deploy: @@ -59,4 +59,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v4.0.5 diff --git a/.github/workflows/verify-lockfile.yml b/.github/workflows/verify-lockfile.yml new file mode 100644 index 0000000..4266cb8 --- /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@v4.4.0 + with: + persist-credentials: false + - uses: github/gh-actions-lock@verify/v0.5.1