Skip to content

Commit 506e3fd

Browse files
authored
Pin GitHubAction dependencies. See #5937 (#5944)
1 parent 464cc62 commit 506e3fd

File tree

10 files changed

+45
-45
lines changed

10 files changed

+45
-45
lines changed

.github/workflows/cbench.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ jobs:
4040
run: |
4141
echo 'users=["ddelemeny", "fmassot", "fulmicoton", "guilload", "PSeitz", "rdettai", "trinity-1686a"]' >> $GITHUB_OUTPUT
4242
43-
- uses: actions/checkout@v5
43+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4444
if: contains(fromJSON(steps.authorized-users.outputs.users), github.actor) && github.event_name == 'pull_request_target'
4545
name: Checkout quickwit (pull request commit)
4646
with:
4747
repository: quickwit-oss/quickwit
4848
ref: ${{ github.event.pull_request.head.sha }}
4949
path: ./quickwit
5050

51-
- uses: actions/checkout@v5
51+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5252
if: contains(fromJSON(steps.authorized-users.outputs.users), github.actor) && github.event_name != 'pull_request_target'
5353
name: Checkout quickwit
5454
with:
@@ -57,7 +57,7 @@ jobs:
5757
path: ./quickwit
5858

5959
- name: Checkout benchmarking code
60-
uses: actions/checkout@v5
60+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
6161
if: contains(fromJSON(steps.authorized-users.outputs.users), github.actor)
6262
with:
6363
repository: quickwit-oss/benchmarks
@@ -68,7 +68,7 @@ jobs:
6868
run: rustup update stable
6969

7070
- name: Install protoc
71-
uses: taiki-e/install-action@v2
71+
uses: taiki-e/install-action@80466ef8efa80486cdfbddf929453a4f3565c791 # v2.62.34
7272
with:
7373
tool: protoc
7474

@@ -103,7 +103,7 @@ jobs:
103103
run: |
104104
echo "::error title=User not allowed to run the benchmark::User must be in list ${{ steps.authorized-users.outputs.users }}"
105105
- name: Add a PR comment with comparison results
106-
uses: actions/github-script@v8
106+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
107107
if: contains(fromJSON(steps.authorized-users.outputs.users), github.actor) && github.event_name == 'pull_request_target'
108108
# Inspired from: https://github.com/actions/github-script/blob/60a0d83039c74a4aee543508d2ffcb1c3799cdea/.github/workflows/pull-request-test.yml
109109
with:

.github/workflows/ci.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ jobs:
5252
--health-timeout 5s
5353
--health-retries 5
5454
steps:
55-
- uses: actions/checkout@v5
55+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5656
- name: Install Ubuntu packages
5757
run: sudo apt-get -y install protobuf-compiler python3
58-
- uses: dorny/paths-filter@v3
58+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
5959
id: modified
6060
with:
6161
filters: |
@@ -75,13 +75,13 @@ jobs:
7575
run: rustup show active-toolchain || rustup toolchain install
7676
working-directory: ./quickwit
7777
- name: Setup cache
78-
uses: Swatinem/rust-cache@v2
78+
uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
7979
if: steps.modified.outputs.rust_src == 'true'
8080
with:
8181
workspaces: "./quickwit -> target"
8282
- name: Install nextest
8383
if: always() && steps.modified.outputs.rust_src == 'true'
84-
uses: taiki-e/cache-cargo-install-action@v2
84+
uses: taiki-e/cache-cargo-install-action@7447f04c51f2ba27ca35e7f1e28fab848c5b3ba7 # v2.3.1
8585
with:
8686
tool: cargo-nextest
8787
- name: cargo nextest
@@ -109,8 +109,8 @@ jobs:
109109
contents: read
110110
actions: write
111111
steps:
112-
- uses: actions/checkout@v5
113-
- uses: dorny/paths-filter@v3
112+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
113+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
114114
id: modified
115115
with:
116116
filters: |
@@ -134,12 +134,12 @@ jobs:
134134
working-directory: ./quickwit
135135
- name: Setup cache
136136
if: steps.modified.outputs.rust_src == 'true'
137-
uses: Swatinem/rust-cache@v2
137+
uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
138138
with:
139139
workspaces: "./quickwit -> target"
140140
- name: Install cargo deny
141141
if: always() && steps.modified.outputs.rust_src == 'true'
142-
uses: taiki-e/cache-cargo-install-action@v2
142+
uses: taiki-e/cache-cargo-install-action@7447f04c51f2ba27ca35e7f1e28fab848c5b3ba7 # v2.3.1
143143
with:
144144
# 0.18 requires rustc 1.85
145145
tool: cargo-deny@0.17.0
@@ -171,12 +171,12 @@ jobs:
171171
contents: read
172172
actions: write
173173
steps:
174-
- uses: actions/checkout@v5
174+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
175175
- name: Install Rust toolchain
176-
uses: dtolnay/rust-toolchain@stable
176+
uses: dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6 # stable
177177

178178
- name: Cache cargo tools
179-
uses: actions/cache@v4
179+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
180180
with:
181181
path: ~/.cargo/bin
182182
key: ${{ runner.os }}-cargo-tools-${{ hashFiles('**/Cargo.lock') }}

.github/workflows/coverage.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ jobs:
109109
PUBSUB_PROJECT1: "quickwit-emulator,emulator_topic:emulator_subscription"
110110

111111
steps:
112-
- uses: actions/checkout@v5
112+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
113113

114114
- name: Install lib libsasl2
115115
run: |
116116
sudo apt update
117117
sudo apt install libsasl2-dev
118118
sudo apt install libsasl2-2
119119
120-
- uses: actions/cache@v4
120+
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
121121
with:
122122
path: |
123123
~/.cargo/git
@@ -151,7 +151,7 @@ jobs:
151151
run: rustup update stable
152152

153153
- name: Install cargo-llvm-cov, cargo-nextest, and protoc
154-
uses: taiki-e/install-action@v2
154+
uses: taiki-e/install-action@80466ef8efa80486cdfbddf929453a4f3565c791 # v2.62.34
155155
with:
156156
tool: cargo-llvm-cov,nextest,protoc
157157

@@ -166,7 +166,7 @@ jobs:
166166
working-directory: ./quickwit
167167

168168
- name: Upload coverage to Codecov
169-
uses: codecov/codecov-action@v5
169+
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
170170
with:
171171
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
172172
files: ./quickwit/lcov.info
@@ -178,7 +178,7 @@ jobs:
178178
runs-on: ubuntu-latest
179179
steps:
180180
- name: Send Message
181-
uses: sarisia/actions-status-discord@v1
181+
uses: sarisia/actions-status-discord@11a0bfe3b50977e38aa2bd4a4ebd296415e83c19 # v1.15.4
182182
with:
183183
webhook: ${{ secrets.DISCORD_WEBHOOK }}
184184
nodetail: true

.github/workflows/dependency.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: "Checkout Repository"
17-
uses: actions/checkout@v5
17+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1818
- name: "Dependency Review"
19-
uses: actions/dependency-review-action@v4
19+
uses: actions/dependency-review-action@45529485b5eb76184ced07362d2331fd9d26f03f # v4.8.1
2020
with:
2121
# This is an minor vuln on the rsa crate, used for
2222
# google storage.

.github/workflows/publish_cross_images.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
name: production
2020
steps:
2121
- name: Check out the repo
22-
uses: actions/checkout@v5
22+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2323
- name: Log in to Docker Hub
24-
uses: docker/login-action@v3
24+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
2525
with:
2626
username: ${{ secrets.DOCKERHUB_USERNAME }}
2727
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}

.github/workflows/publish_docker_images.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,23 @@ jobs:
3838
name: production
3939
steps:
4040
- name: Checkout
41-
uses: actions/checkout@v5
41+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4242

4343
- name: Login to Docker Hub
44-
uses: docker/login-action@v3
44+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
4545
with:
4646
username: ${{ secrets.DOCKERHUB_USERNAME }}
4747
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
4848

4949
- name: Set up QEMU
50-
uses: docker/setup-qemu-action@v3
50+
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
5151

5252
- name: Set up Docker Buildx
53-
uses: docker/setup-buildx-action@v3
53+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
5454

5555
- name: Docker meta
5656
id: meta
57-
uses: docker/metadata-action@v5
57+
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
5858
with:
5959
images: |
6060
${{ env.REGISTRY_IMAGE }}
@@ -76,7 +76,7 @@ jobs:
7676
fi
7777
7878
- name: Build and push image
79-
uses: docker/build-push-action@v6
79+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
8080
id: build
8181
with:
8282
context: .
@@ -96,7 +96,7 @@ jobs:
9696
touch "/tmp/digests/${digest#sha256:}"
9797
9898
- name: Upload digest
99-
uses: actions/upload-artifact@v4.6.2
99+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
100100
with:
101101
name: digest-${{ matrix.platform_suffix }}
102102
path: /tmp/digests/*
@@ -112,18 +112,18 @@ jobs:
112112
environment: production
113113
steps:
114114
- name: Download digests
115-
uses: actions/download-artifact@v5.0.0
115+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
116116
with:
117117
pattern: digest-*
118118
path: /tmp/digests
119119
merge-multiple: true
120120

121121
- name: Set up Docker Buildx
122-
uses: docker/setup-buildx-action@v3
122+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
123123

124124
- name: Docker meta
125125
id: meta
126-
uses: docker/metadata-action@v5
126+
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
127127
with:
128128
images: ${{ env.REGISTRY_IMAGE }}
129129
flavor: |
@@ -136,7 +136,7 @@ jobs:
136136
type=semver,pattern={{version}},suffix=-slim-bookworm
137137
type=ref,event=tag
138138
- name: Login to Docker Hub
139-
uses: docker/login-action@v3
139+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
140140
with:
141141
username: ${{ secrets.DOCKERHUB_USERNAME }}
142142
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}

.github/workflows/publish_lambda_packages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
permissions:
1616
contents: write
1717
steps:
18-
- uses: actions/checkout@v5
18+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1919
- name: Install Ubuntu packages
2020
run: sudo apt-get -y install protobuf-compiler python3 python3-pip
2121
- name: Install rustup
@@ -49,7 +49,7 @@ jobs:
4949
echo "INDEXER_PACKAGE_LOCATION=./distribution/lambda/$(make indexer-package-path)" >> $GITHUB_ENV
5050
working-directory: ./distribution/lambda
5151
- name: Upload Lambda archives
52-
uses: quickwit-inc/upload-to-github-release@v1
52+
uses: quickwit-inc/upload-to-github-release@98857380fc282f8075a62c6af230fe92bd93aff8 # v1.3.2
5353
env:
5454
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5555
with:

.github/workflows/publish_nightly_packages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
matrix:
2121
target: [x86_64-apple-darwin, aarch64-apple-darwin]
2222
steps:
23-
- uses: actions/checkout@v5
23+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2424
- uses: ./.github/actions/cargo-build-macos-binary
2525
with:
2626
target: ${{ matrix.target }}
@@ -37,7 +37,7 @@ jobs:
3737
contents: write
3838
actions: write
3939
steps:
40-
- uses: actions/checkout@v5
40+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4141
- uses: ./.github/actions/cross-build-binary
4242
with:
4343
target: ${{ matrix.target }}

.github/workflows/publish_release_packages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
target: [x86_64-apple-darwin, aarch64-apple-darwin]
2121

2222
steps:
23-
- uses: actions/checkout@v5
23+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2424
- name: Extract asset version
2525
run: echo "ASSET_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
2626
- uses: ./.github/actions/cargo-build-macos-binary
@@ -39,7 +39,7 @@ jobs:
3939
contents: write
4040
actions: write
4141
steps:
42-
- uses: actions/checkout@v5
42+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4343
- name: Extract asset version
4444
run: echo "ASSET_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
4545
- uses: ./.github/actions/cross-build-binary

.github/workflows/ui-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ jobs:
6464
RUSTDOCFLAGS: -Dwarnings -Arustdoc::private_intra_doc_links
6565
QW_TEST_DATABASE_URL: postgres://quickwit-dev:quickwit-dev@postgres:5432/quickwit-metastore-dev
6666
steps:
67-
- uses: actions/checkout@v5
68-
- uses: actions/setup-node@v5
67+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
68+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
6969
with:
7070
node-version: 20
7171
cache: "yarn"
@@ -77,7 +77,7 @@ jobs:
7777
working-directory: ./quickwit
7878
- name: Setup Rust cache
7979
if: matrix.task.name == 'Cypress run'
80-
uses: Swatinem/rust-cache@v2
80+
uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
8181
with:
8282
workspaces: "./quickwit -> target"
8383
- name: ${{ matrix.task.name }}

0 commit comments

Comments
 (0)