From 1f47208111b708e277f53fc86c228657babc17d0 Mon Sep 17 00:00:00 2001 From: Jan Buchar Date: Tue, 24 Nov 2026 11:40:55 +0100 Subject: [PATCH] chore(ci): lock GitHub Actions via actions.lock --- .github/workflows/actions.lock | 28 ++++++++++++++++++++ .github/workflows/java-integration-tests.yml | 4 +-- .github/workflows/java-publish.yml | 4 +-- AGENTS.md | 5 ++++ 4 files changed, 37 insertions(+), 4 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..dbc4146 --- /dev/null +++ b/.github/workflows/actions.lock @@ -0,0 +1,28 @@ +# 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/java-integration-tests.yml': + - 'actions/checkout@v4.4.0' + - 'actions/setup-java@v4.9.1' + '.github/workflows/java-publish.yml': + - 'actions/checkout@v4.4.0' + - 'actions/setup-java@v4.9.1' + - 'stcarolas/setup-maven@v5' +dependencies: + 'actions/checkout@v4.4.0': + ref: 'v4.4.0' + commit: 'sha1-11d5960a326750d5838078e36cf38b85af677262' + owner_id: 44036562 + repo_id: 197814629 + 'actions/setup-java@v4.9.1': + ref: 'v4.9.1' + commit: 'sha1-cf277c60eb25467037889841efdb72551f06f6c3' + owner_id: 44036562 + repo_id: 196057608 + 'stcarolas/setup-maven@v5': + ref: 'v5' + commit: 'sha1-d6af6abeda15e98926a57b5aa970a96bb37f97d1' + owner_id: 2007081 + repo_id: 226509858 diff --git a/.github/workflows/java-integration-tests.yml b/.github/workflows/java-integration-tests.yml index 54c3756..0e381cd 100644 --- a/.github/workflows/java-integration-tests.yml +++ b/.github/workflows/java-integration-tests.yml @@ -32,10 +32,10 @@ jobs: environment: tests steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v4.4.0 - name: Set up JDK - uses: actions/setup-java@v4 + uses: actions/setup-java@v4.9.1 with: distribution: temurin java-version: '17' diff --git a/.github/workflows/java-publish.yml b/.github/workflows/java-publish.yml index ce02e14..e223d3e 100644 --- a/.github/workflows/java-publish.yml +++ b/.github/workflows/java-publish.yml @@ -28,7 +28,7 @@ jobs: environment: Publishing steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v4.4.0 with: fetch-depth: 0 @@ -41,7 +41,7 @@ jobs: fi - name: Set up JDK - uses: actions/setup-java@v4 + uses: actions/setup-java@v4.9.1 with: distribution: temurin java-version: '17' 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.