Skip to content

Commit fb1ea38

Browse files
Pin third party actions to commit SHA
1 parent b6c7ca4 commit fb1ea38

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

.github/workflows/pr.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout sources
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
1616
- name: Install stable toolchain
17-
uses: dtolnay/rust-toolchain@stable
17+
uses: dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6 # stable
1818
- name: Enable caching
19-
uses: Swatinem/rust-cache@v2
19+
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2
2020
- name: Run cargo test
2121
run: cargo test
2222

@@ -25,11 +25,11 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- name: Checkout sources
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
2929
- name: Install stable toolchain
30-
uses: dtolnay/rust-toolchain@stable
30+
uses: dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6 # stable
3131
- name: Enable caching
32-
uses: Swatinem/rust-cache@v2
32+
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2
3333
- name: Run cargo fmt
3434
run: cargo fmt --all -- --check
3535
# - name: Run cargo clippy

.github/workflows/release.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
env:
5656
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5757
steps:
58-
- uses: actions/checkout@v4
58+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
5959
with:
6060
submodules: recursive
6161
- name: Install cargo-dist
@@ -75,7 +75,7 @@ jobs:
7575
cat plan-dist-manifest.json
7676
echo "manifest=$(jq -c "." plan-dist-manifest.json)" >> "$GITHUB_OUTPUT"
7777
- name: "Upload dist-manifest.json"
78-
uses: actions/upload-artifact@v4
78+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
7979
with:
8080
name: artifacts-plan-dist-manifest
8181
path: plan-dist-manifest.json
@@ -108,18 +108,18 @@ jobs:
108108
- name: enable windows longpaths
109109
run: |
110110
git config --global core.longpaths true
111-
- uses: actions/checkout@v4
111+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
112112
with:
113113
submodules: recursive
114-
- uses: swatinem/rust-cache@v2
114+
- uses: swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2
115115
with:
116116
key: ${{ join(matrix.targets, '-') }}
117117
cache-provider: ${{ matrix.cache_provider }}
118118
- name: Install cargo-dist
119119
run: ${{ matrix.install_dist }}
120120
# Get the dist-manifest
121121
- name: Fetch local artifacts
122-
uses: actions/download-artifact@v4
122+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
123123
with:
124124
pattern: artifacts-*
125125
path: target/distrib/
@@ -146,7 +146,7 @@ jobs:
146146
147147
cp dist-manifest.json "$BUILD_MANIFEST_NAME"
148148
- name: "Upload artifacts"
149-
uses: actions/upload-artifact@v4
149+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
150150
with:
151151
name: artifacts-build-local-${{ join(matrix.targets, '_') }}
152152
path: |
@@ -163,15 +163,15 @@ jobs:
163163
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
164164
BUILD_MANIFEST_NAME: target/distrib/global-dist-manifest.json
165165
steps:
166-
- uses: actions/checkout@v4
166+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
167167
with:
168168
submodules: recursive
169169
- name: Install cargo-dist
170170
shell: bash
171171
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.16.0/cargo-dist-installer.sh | sh"
172172
# Get all the local artifacts for the global tasks to use (for e.g. checksums)
173173
- name: Fetch local artifacts
174-
uses: actions/download-artifact@v4
174+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
175175
with:
176176
pattern: artifacts-*
177177
path: target/distrib/
@@ -189,7 +189,7 @@ jobs:
189189
190190
cp dist-manifest.json "$BUILD_MANIFEST_NAME"
191191
- name: "Upload artifacts"
192-
uses: actions/upload-artifact@v4
192+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
193193
with:
194194
name: artifacts-build-global
195195
path: |
@@ -209,14 +209,14 @@ jobs:
209209
outputs:
210210
val: ${{ steps.host.outputs.manifest }}
211211
steps:
212-
- uses: actions/checkout@v4
212+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
213213
with:
214214
submodules: recursive
215215
- name: Install cargo-dist
216216
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.16.0/cargo-dist-installer.sh | sh"
217217
# Fetch artifacts from scratch-storage
218218
- name: Fetch artifacts
219-
uses: actions/download-artifact@v4
219+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
220220
with:
221221
pattern: artifacts-*
222222
path: target/distrib/
@@ -230,7 +230,7 @@ jobs:
230230
cat dist-manifest.json
231231
echo "manifest=$(jq -c "." dist-manifest.json)" >> "$GITHUB_OUTPUT"
232232
- name: "Upload dist-manifest.json"
233-
uses: actions/upload-artifact@v4
233+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
234234
with:
235235
# Overwrite the previous copy
236236
name: artifacts-dist-manifest
@@ -249,11 +249,11 @@ jobs:
249249
env:
250250
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
251251
steps:
252-
- uses: actions/checkout@v4
252+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
253253
with:
254254
submodules: recursive
255255
- name: "Download GitHub Artifacts"
256-
uses: actions/download-artifact@v4
256+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
257257
with:
258258
pattern: artifacts-*
259259
path: artifacts

0 commit comments

Comments
 (0)