From 14080365bfe75f2c6544198a4af156b539cc09f5 Mon Sep 17 00:00:00 2001 From: Jan Buchar Date: Tue, 24 Nov 2026 11:41:05 +0100 Subject: [PATCH] chore(ci): lock GitHub Actions via actions.lock --- .github/workflows/actions.lock | 35 ++++++++++++++++++++ .github/workflows/rust-integration-tests.yml | 4 +-- .github/workflows/rust-publish.yml | 6 ++-- AGENTS.md | 5 +++ 4 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/actions.lock create mode 100644 AGENTS.md diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock new file mode 100644 index 0000000..54f6807 --- /dev/null +++ b/.github/workflows/actions.lock @@ -0,0 +1,35 @@ +# 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/rust-integration-tests.yml': + - 'actions/cache@v4.3.0' + - 'actions/checkout@v4.4.0' + - 'dtolnay/rust-toolchain@stable' + '.github/workflows/rust-publish.yml': + - 'actions/cache@v4.3.0' + - 'actions/checkout@v4.4.0' + - 'dtolnay/rust-toolchain@stable' + - 'rust-lang/crates-io-auth-action@v1.0.6' +dependencies: + 'actions/cache@v4.3.0': + ref: 'v4.3.0' + commit: 'sha1-0057852bfaa89a56745cba8c7296529d2fc39830' + owner_id: 44036562 + repo_id: 215566462 + 'actions/checkout@v4.4.0': + ref: 'v4.4.0' + commit: 'sha1-11d5960a326750d5838078e36cf38b85af677262' + owner_id: 44036562 + repo_id: 197814629 + 'dtolnay/rust-toolchain@stable': + ref: 'stable' + commit: 'sha1-39008827e6b4319a349e9a42dfc90579dd25f1ca' + owner_id: 1940490 + repo_id: 260749683 + 'rust-lang/crates-io-auth-action@v1.0.6': + ref: 'v1.0.6' + commit: 'sha1-3268eb413133e2960fa4ae0e963ca76380c54cd9' + owner_id: 5430905 + repo_id: 1008931044 diff --git a/.github/workflows/rust-integration-tests.yml b/.github/workflows/rust-integration-tests.yml index 3254b54..e147736 100644 --- a/.github/workflows/rust-integration-tests.yml +++ b/.github/workflows/rust-integration-tests.yml @@ -29,7 +29,7 @@ jobs: environment: tests steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v4.4.0 - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable @@ -37,7 +37,7 @@ jobs: components: rustfmt, clippy - name: Cache cargo registry and build - uses: actions/cache@v4 + uses: actions/cache@v4.3.0 with: path: | ~/.cargo/registry diff --git a/.github/workflows/rust-publish.yml b/.github/workflows/rust-publish.yml index ab3b420..77bb7cd 100644 --- a/.github/workflows/rust-publish.yml +++ b/.github/workflows/rust-publish.yml @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v4.4.0 with: # Full history for the tag lookups. fetch-depth: 0 @@ -43,7 +43,7 @@ jobs: components: rustfmt, clippy - name: Cache cargo registry and build - uses: actions/cache@v4 + uses: actions/cache@v4.3.0 with: path: | ~/.cargo/registry @@ -152,7 +152,7 @@ jobs: - name: Authenticate to crates.io (Trusted Publishing) id: auth if: ${{ github.event.inputs.dry_run != 'true' }} - uses: rust-lang/crates-io-auth-action@v1 + uses: rust-lang/crates-io-auth-action@v1.0.6 - name: Publish to crates.io if: ${{ github.event.inputs.dry_run != 'true' }} diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..81ddb42 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,5 @@ +# AGENTS.md + +## GitHub Actions + +Workflows reference actions by version tag (`actions/checkout@v7.0.1`), never by commit SHA. [`.github/workflows/actions.lock`](.github/workflows/actions.lock) pins every tag, including those called by composite actions, to its commit. After adding or changing a `uses:` line, run `gh actions-lock` ([extension](https://github.com/github/gh-actions-lock)) and commit the lockfile. Prefer composite actions from `apify/actions` over reusable workflows from `apify/workflows`, which the lockfile can't pin.