From 7a93b0c60cb9e514f2b90be3ceb9157d3683f650 Mon Sep 17 00:00:00 2001 From: Jan Buchar Date: Tue, 24 Nov 2026 11:41:15 +0100 Subject: [PATCH] chore(ci): lock GitHub Actions via actions.lock --- .github/workflows/actions.lock | 22 +++++++++++++++++++++ .github/workflows/php-integration-tests.yml | 12 +++++------ .github/workflows/php-publish.yml | 4 ++-- AGENTS.md | 5 +++++ 4 files changed, 35 insertions(+), 8 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..af1ff7d --- /dev/null +++ b/.github/workflows/actions.lock @@ -0,0 +1,22 @@ +# 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/php-integration-tests.yml': + - 'actions/checkout@v4.4.0' + - 'shivammathur/setup-php@2.40.0' + '.github/workflows/php-publish.yml': + - 'actions/checkout@v4.4.0' + - 'shivammathur/setup-php@2.40.0' +dependencies: + 'actions/checkout@v4.4.0': + ref: 'v4.4.0' + commit: 'sha1-11d5960a326750d5838078e36cf38b85af677262' + owner_id: 44036562 + repo_id: 197814629 + 'shivammathur/setup-php@2.40.0': + ref: '2.40.0' + commit: 'sha1-eb7c497e18156a6bbabfef1d3a82760b9eda3962' + owner_id: 1571086 + repo_id: 206578964 diff --git a/.github/workflows/php-integration-tests.yml b/.github/workflows/php-integration-tests.yml index 7523c00..5bae058 100644 --- a/.github/workflows/php-integration-tests.yml +++ b/.github/workflows/php-integration-tests.yml @@ -30,10 +30,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v4.4.0 - name: Set up PHP (with brotli and zstd) - uses: shivammathur/setup-php@v2 + uses: shivammathur/setup-php@2.40.0 with: php-version: '8.1' extensions: mbstring, json, curl, zlib, brotli, zstd @@ -61,10 +61,10 @@ jobs: environment: tests steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v4.4.0 - name: Set up PHP (with zstd) - uses: shivammathur/setup-php@v2 + uses: shivammathur/setup-php@2.40.0 with: php-version: '8.1' extensions: mbstring, json, curl, zlib, zstd @@ -98,10 +98,10 @@ jobs: environment: tests steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v4.4.0 - name: Set up PHP - uses: shivammathur/setup-php@v2 + uses: shivammathur/setup-php@2.40.0 with: php-version: '8.1' # intl is optional, and loaded so that the punycode test runs. diff --git a/.github/workflows/php-publish.yml b/.github/workflows/php-publish.yml index d53d9ea..e0cc2ef 100644 --- a/.github/workflows/php-publish.yml +++ b/.github/workflows/php-publish.yml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v4.4.0 with: fetch-depth: 0 @@ -38,7 +38,7 @@ jobs: fi - name: Set up PHP - uses: shivammathur/setup-php@v2 + uses: shivammathur/setup-php@2.40.0 with: php-version: '8.1' extensions: mbstring, json, curl, zlib 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.