@@ -54,11 +54,13 @@ jobs: |
54 | 54 |
|
55 | 55 | name: stage-snapshot-${{ matrix.setup }} |
56 | 56 | steps: |
57 | | - - uses: actions/checkout@v4 |
| 57 | + # Pinned to v4.3.1 |
| 58 | + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 |
58 | 59 |
|
59 | 60 | # Cache .m2/repository |
| 61 | + # Pinned to v4.3.0 |
60 | 62 | - name: Cache local Maven repository |
61 | | - uses: actions/cache@v4 |
| 63 | + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 |
62 | 64 | continue-on-error: true |
63 | 65 | with: |
64 | 66 | path: ~/.m2/repository |
|
76 | 78 | - name: Stage snapshots to local staging directory |
77 | 79 | run: docker compose ${{ matrix.docker-compose-run }} |
78 | 80 |
|
| 81 | + # Pinned to v4.6.2 |
79 | 82 | - name: Upload local staging directory |
80 | | - uses: actions/upload-artifact@v4 |
| 83 | + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 |
81 | 84 | with: |
82 | 85 | name: ${{ matrix.setup }}-local-staging |
83 | 86 | path: ~/local-staging |
@@ -98,17 +101,20 @@ jobs: |
98 | 101 | name: ${{ matrix.setup }} build |
99 | 102 |
|
100 | 103 | steps: |
101 | | - - uses: actions/checkout@v4 |
| 104 | + # Pinned to v4.3.1 |
| 105 | + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 |
102 | 106 |
|
| 107 | + # Pinned to v4.8.0 |
103 | 108 | - name: Set up JDK 11 |
104 | | - uses: actions/setup-java@v4 |
| 109 | + uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 |
105 | 110 | with: |
106 | 111 | distribution: 'zulu' |
107 | 112 | java-version: '11' |
108 | 113 |
|
109 | 114 | # Cache .m2/repository |
110 | | - # Caching of maven dependencies |
111 | | - - uses: actions/cache@v4 |
| 115 | + # Pinned to v4.3.0 |
| 116 | + - name: Cache local Maven repository |
| 117 | + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 |
112 | 118 | continue-on-error: true |
113 | 119 | with: |
114 | 120 | path: ~/.m2/repository |
@@ -126,8 +132,9 @@ jobs: |
126 | 132 | - name: Stage snapshots to local staging directory |
127 | 133 | run: ./mvnw -B -ntp clean package org.sonatype.plugins:nexus-staging-maven-plugin:deploy -DskipRemoteStaging=true -DaltStagingDirectory=$HOME/local-staging -DskipTests=true |
128 | 134 |
|
| 135 | + # Pinned to v4.6.2 |
129 | 136 | - name: Upload local staging directory |
130 | | - uses: actions/upload-artifact@v4 |
| 137 | + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 |
131 | 138 | with: |
132 | 139 | name: ${{ matrix.setup }}-local-staging |
133 | 140 | path: ~/local-staging |
@@ -142,17 +149,20 @@ jobs: |
142 | 149 | # failures sometimes due the fact that not enough memory could be reserved. |
143 | 150 | RUSTUP_UNPACK_RAM: 134217728 # Use 128 MiB |
144 | 151 | steps: |
145 | | - - uses: actions/checkout@v4 |
| 152 | + # Pinned to v4.3.1 |
| 153 | + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 |
146 | 154 |
|
| 155 | + # Pinned to v4.8.0 |
147 | 156 | - name: Set up JDK 11 |
148 | | - uses: actions/setup-java@v4 |
| 157 | + uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 |
149 | 158 | with: |
150 | 159 | distribution: 'zulu' |
151 | 160 | java-version: 11 |
152 | 161 |
|
153 | 162 | # Cache .m2/repository |
| 163 | + # Pinned to v4.3.0 |
154 | 164 | - name: Cache local Maven repository |
155 | | - uses: actions/cache@v4 |
| 165 | + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 |
156 | 166 | continue-on-error: true |
157 | 167 | with: |
158 | 168 | path: ~/.m2/repository |
@@ -161,29 +171,34 @@ jobs: |
161 | 171 | cache-windows-maven-${{ hashFiles('**/pom.xml') }} |
162 | 172 | cache-windows-maven- |
163 | 173 |
|
| 174 | + # Pinned to 1.71.0 |
164 | 175 | - name: Install stable rust toolchain |
165 | | - uses: dtolnay/rust-toolchain@stable |
| 176 | + uses: dtolnay/rust-toolchain@d36bfec312c4a8e1f20b70b99cdd6f73b7366bd0 |
166 | 177 | with: |
167 | 178 | targets: x86_64-pc-windows-msvc |
168 | 179 |
|
| 180 | + # Pinned to v2 |
169 | 181 | - name: Add msbuild to PATH |
170 | | - uses: microsoft/setup-msbuild@v2 |
| 182 | + uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce |
171 | 183 |
|
| 184 | + # Pinned to v1.13.0 |
172 | 185 | - name: Configuring Developer Command Prompt |
173 | | - uses: ilammy/msvc-dev-cmd@v1 |
| 186 | + uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 |
174 | 187 | with: |
175 | 188 | arch: x86_amd64 |
176 | 189 |
|
| 190 | + # Pinned to v3.4.0 |
177 | 191 | - name: Install tools |
178 | | - uses: crazy-max/ghaction-chocolatey@v3 |
| 192 | + uses: crazy-max/ghaction-chocolatey@2526f467ccbd337d307fe179959cabbeca0bc8c0 |
179 | 193 | with: |
180 | 194 | args: install ninja nasm |
181 | 195 |
|
182 | 196 | - name: Stage snapshots to local staging directory |
183 | 197 | run: ./mvnw.cmd -B -ntp --file pom.xml clean package org.sonatype.plugins:nexus-staging-maven-plugin:deploy -DskipRemoteStaging=true -DaltStagingDirectory=/local-staging -DskipTests=true |
184 | 198 |
|
| 199 | + # Pinned to v4.6.2 |
185 | 200 | - name: Upload local staging directory |
186 | | - uses: actions/upload-artifact@v4 |
| 201 | + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 |
187 | 202 | with: |
188 | 203 | name: windows-x86_64-local-staging |
189 | 204 | path: /local-staging |
@@ -195,17 +210,21 @@ jobs: |
195 | 210 | # Wait until we have staged everything |
196 | 211 | needs: [ stage-snapshot-linux, stage-snapshot-windows-x86_64, stage-snapshot-macos ] |
197 | 212 | steps: |
198 | | - - uses: actions/checkout@v4 |
| 213 | + # Pinned to v4.3.0 |
| 214 | + - name: Cache local Maven repository |
| 215 | + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 |
199 | 216 |
|
| 217 | + # Pinned to v4.8.0 |
200 | 218 | - name: Set up JDK 11 |
201 | | - uses: actions/setup-java@v4 |
| 219 | + uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 |
202 | 220 | with: |
203 | 221 | distribution: 'zulu' |
204 | 222 | java-version: '11' |
205 | 223 |
|
206 | 224 | # Cache .m2/repository |
| 225 | + # Pinned to v4.3.0 |
207 | 226 | - name: Cache local Maven repository |
208 | | - uses: actions/cache@v4 |
| 227 | + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 |
209 | 228 | continue-on-error: true |
210 | 229 | with: |
211 | 230 | path: ~/.m2/repository |
@@ -214,7 +233,8 @@ jobs: |
214 | 233 | cache-maven-${{ hashFiles('**/pom.xml') }} |
215 | 234 | cache-maven- |
216 | 235 |
|
217 | | - |
| 236 | + # Pinned to v3.0.0 |
| 237 | + - uses: s4u/maven-settings-action@7802f6aec16c9098b4798ad1f1d8ac75198194bd |
218 | 238 | with: |
219 | 239 | servers: | |
220 | 240 | [{ |
@@ -225,38 +245,44 @@ jobs: |
225 | 245 |
|
226 | 246 | # Hardcode the staging artifacts that need to be downloaded. |
227 | 247 | # These must match the matrix setups. There is currently no way to pull this out of the config. |
| 248 | + # Pinned to v4.3.0 |
228 | 249 | - name: Download windows_x86_64 staging directory |
229 | | - uses: actions/download-artifact@v4 |
| 250 | + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 |
230 | 251 | with: |
231 | 252 | name: windows-x86_64-local-staging |
232 | 253 | path: ~/windows-x86_64-local-staging |
233 | 254 |
|
| 255 | + # Pinned to v4.3.0 |
234 | 256 | - name: Download macos-aarch64-java11 staging directory |
235 | | - uses: actions/download-artifact@v4 |
| 257 | + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 |
236 | 258 | with: |
237 | 259 | name: macos-aarch64-java11-local-staging |
238 | 260 | path: ~/macos-aarch64-java11-local-staging |
239 | 261 |
|
| 262 | + # Pinned to v4.3.0 |
240 | 263 | - name: Download macos-x86_64-java11 staging directory |
241 | | - uses: actions/download-artifact@v4 |
| 264 | + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 |
242 | 265 | with: |
243 | 266 | name: macos-x86_64-java11-local-staging |
244 | 267 | path: ~/macos-x86_64-java11-local-staging |
245 | 268 |
|
| 269 | + # Pinned to v4.3.0 |
246 | 270 | - name: Download linux-aarch64 staging directory |
247 | | - uses: actions/download-artifact@v4 |
| 271 | + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 |
248 | 272 | with: |
249 | 273 | name: linux-aarch64-local-staging |
250 | 274 | path: ~/linux-aarch64-local-staging |
251 | 275 |
|
| 276 | + # Pinned to v4.3.0 |
252 | 277 | - name: Download linux-riscv64 staging directory |
253 | | - uses: actions/download-artifact@v4 |
| 278 | + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 |
254 | 279 | with: |
255 | 280 | name: linux-riscv64-local-staging |
256 | 281 | path: ~/linux-riscv64-local-staging |
257 | 282 |
|
| 283 | + # Pinned to v4.3.0 |
258 | 284 | - name: Download linux-x86_64-java11 staging directory |
259 | | - uses: actions/download-artifact@v4 |
| 285 | + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 |
260 | 286 | with: |
261 | 287 | name: linux-x86_64-java11-local-staging |
262 | 288 | path: ~/linux-x86_64-java11-local-staging |
|