Skip to content

Commit 993cb5a

Browse files
authored
chore(ci): lock GitHub Actions via actions.lock (#39)
1 parent 5c4faa7 commit 993cb5a

4 files changed

Lines changed: 45 additions & 5 deletions

File tree

‎.github/workflows/actions.lock‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This file is machine-generated by `gh actions-lock`.
2+
# Do not edit by hand; run `gh actions-lock` to update.
3+
# Docs: https://gh.io/actions-lockfile
4+
version: 'v0.0.3'
5+
workflows:
6+
'.github/workflows/rust-integration-tests.yml':
7+
- 'actions/cache@v4.3.0'
8+
- 'actions/checkout@v4.4.0'
9+
- 'dtolnay/rust-toolchain@stable'
10+
'.github/workflows/rust-publish.yml':
11+
- 'actions/cache@v4.3.0'
12+
- 'actions/checkout@v4.4.0'
13+
- 'dtolnay/rust-toolchain@stable'
14+
- 'rust-lang/crates-io-auth-action@v1.0.6'
15+
dependencies:
16+
'actions/cache@v4.3.0':
17+
ref: 'v4.3.0'
18+
commit: 'sha1-0057852bfaa89a56745cba8c7296529d2fc39830'
19+
owner_id: 44036562
20+
repo_id: 215566462
21+
'actions/checkout@v4.4.0':
22+
ref: 'v4.4.0'
23+
commit: 'sha1-11d5960a326750d5838078e36cf38b85af677262'
24+
owner_id: 44036562
25+
repo_id: 197814629
26+
'dtolnay/rust-toolchain@stable':
27+
ref: 'stable'
28+
commit: 'sha1-39008827e6b4319a349e9a42dfc90579dd25f1ca'
29+
owner_id: 1940490
30+
repo_id: 260749683
31+
'rust-lang/crates-io-auth-action@v1.0.6':
32+
ref: 'v1.0.6'
33+
commit: 'sha1-3268eb413133e2960fa4ae0e963ca76380c54cd9'
34+
owner_id: 5430905
35+
repo_id: 1008931044

‎.github/workflows/rust-integration-tests.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ jobs:
2929
environment: tests
3030
steps:
3131
- name: Checkout
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@v4.4.0
3333

3434
- name: Install Rust toolchain
3535
uses: dtolnay/rust-toolchain@stable
3636
with:
3737
components: rustfmt, clippy
3838

3939
- name: Cache cargo registry and build
40-
uses: actions/cache@v4
40+
uses: actions/cache@v4.3.0
4141
with:
4242
path: |
4343
~/.cargo/registry

‎.github/workflows/rust-publish.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v4.4.0
2828
with:
2929
# Full history for the tag lookups.
3030
fetch-depth: 0
@@ -43,7 +43,7 @@ jobs:
4343
components: rustfmt, clippy
4444

4545
- name: Cache cargo registry and build
46-
uses: actions/cache@v4
46+
uses: actions/cache@v4.3.0
4747
with:
4848
path: |
4949
~/.cargo/registry
@@ -152,7 +152,7 @@ jobs:
152152
- name: Authenticate to crates.io (Trusted Publishing)
153153
id: auth
154154
if: ${{ github.event.inputs.dry_run != 'true' }}
155-
uses: rust-lang/crates-io-auth-action@v1
155+
uses: rust-lang/crates-io-auth-action@v1.0.6
156156

157157
- name: Publish to crates.io
158158
if: ${{ github.event.inputs.dry_run != 'true' }}

‎AGENTS.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# AGENTS.md
2+
3+
## GitHub Actions
4+
5+
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.

0 commit comments

Comments
 (0)