Skip to content

Commit 3b0b63a

Browse files
Steelskincompnerd
authored andcommitted
Use commit hash for dependent actions
* Refer to specific commit hashes rather than a branch like main for dependent actions.
1 parent d72f2d1 commit 3b0b63a

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

.github/workflows/swift-toolchain.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -285,13 +285,13 @@ jobs:
285285
path: ${{ github.workspace }}/SourceCache/swift-toolchain-sqlite
286286
show-progress: false
287287

288-
- uses: compnerd/gha-setup-vsdevenv@main
288+
- uses: compnerd/gha-setup-vsdevenv@f1ba60d553a3216ce1b89abe0201213536bc7557 # main
289289
with:
290290
host_arch: ${{ inputs.build_arch }}
291291
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
292292
arch: ${{ matrix.arch }}
293293

294-
- uses: seanmiddleditch/gha-setup-ninja@master
294+
- uses: seanmiddleditch/gha-setup-ninja@96bed6edff20d1dd61ecff9b75cc519d516e6401 # master
295295
if: inputs.build_os == 'Darwin'
296296

297297
- name: Compute workspace hash
@@ -353,7 +353,7 @@ jobs:
353353
path: ${{ github.workspace }}/SourceCache/ds2
354354
show-progress: false
355355

356-
- uses: compnerd/gha-setup-vsdevenv@main
356+
- uses: compnerd/gha-setup-vsdevenv@f1ba60d553a3216ce1b89abe0201213536bc7557 # main
357357
with:
358358
host_arch: amd64
359359
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
@@ -439,7 +439,7 @@ jobs:
439439
path: ${{ github.workspace }}/SourceCache/ds2
440440
show-progress: false
441441

442-
- uses: compnerd/gha-setup-vsdevenv@main
442+
- uses: compnerd/gha-setup-vsdevenv@f1ba60d553a3216ce1b89abe0201213536bc7557 # main
443443
with:
444444
host_arch: amd64
445445
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
@@ -508,13 +508,13 @@ jobs:
508508
path: ${{ github.workspace }}/SourceCache/cmark-gfm
509509
show-progress: false
510510

511-
- uses: compnerd/gha-setup-vsdevenv@main
511+
- uses: compnerd/gha-setup-vsdevenv@f1ba60d553a3216ce1b89abe0201213536bc7557 # main
512512
with:
513513
host_arch: ${{ inputs.build_arch }}
514514
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
515515
arch: ${{ matrix.arch }}
516516

517-
- uses: seanmiddleditch/gha-setup-ninja@master
517+
- uses: seanmiddleditch/gha-setup-ninja@96bed6edff20d1dd61ecff9b75cc519d516e6401 # master
518518
if: inputs.build_os == 'Darwin'
519519

520520
- name: Compute workspace hash
@@ -591,9 +591,9 @@ jobs:
591591
path: ${{ github.workspace }}/SourceCache/swift
592592
show-progress: false
593593

594-
- uses: compnerd/gha-setup-vsdevenv@main
594+
- uses: compnerd/gha-setup-vsdevenv@f1ba60d553a3216ce1b89abe0201213536bc7557 # main
595595

596-
- uses: seanmiddleditch/gha-setup-ninja@master
596+
- uses: seanmiddleditch/gha-setup-ninja@96bed6edff20d1dd61ecff9b75cc519d516e6401 # master
597597
if: inputs.build_os == 'Darwin'
598598

599599
- name: Compute workspace hash
@@ -747,18 +747,18 @@ jobs:
747747
path: ${{ github.workspace }}/SourceCache/swift-driver
748748
show-progress: false
749749

750-
- uses: compnerd/gha-setup-vsdevenv@main
750+
- uses: compnerd/gha-setup-vsdevenv@f1ba60d553a3216ce1b89abe0201213536bc7557 # main
751751
with:
752752
host_arch: ${{ inputs.build_arch }}
753753
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
754754
arch: ${{ matrix.arch }}
755755

756-
- uses: seanmiddleditch/gha-setup-ninja@master
756+
- uses: seanmiddleditch/gha-setup-ninja@96bed6edff20d1dd61ecff9b75cc519d516e6401 # master
757757
if: inputs.build_os == 'Darwin'
758758

759759
- name: Install Swift Toolchain (Mac)
760760
if: inputs.build_os == 'Darwin'
761-
uses: compnerd/gha-setup-swift@main
761+
uses: compnerd/gha-setup-swift@b6c5fc1ed5b5439ada8e7661985acb09ad8c3ba2 # main
762762
with:
763763
branch: swift-6.0.1-release
764764
tag: 6.0.1-RELEASE
@@ -904,14 +904,14 @@ jobs:
904904
echo "PYTHON_LOCATION_amd64=$env:pythonLocation" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
905905
echo "PYTHON_LOCATION_arm64=${{ github.workspace }}\pythonarm64.${{ env.PYTHON_VERSION }}\tools" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
906906
907-
- uses: compnerd/gha-setup-vsdevenv@main
907+
- uses: compnerd/gha-setup-vsdevenv@f1ba60d553a3216ce1b89abe0201213536bc7557 # main
908908
with:
909909
host_arch: amd64
910910
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
911911
arch: ${{ matrix.arch }}
912912

913913
- name: Install Swift Toolchain
914-
uses: compnerd/gha-setup-swift@main
914+
uses: compnerd/gha-setup-swift@b6c5fc1ed5b5439ada8e7661985acb09ad8c3ba2 # main
915915
with:
916916
github-repo: thebrowsercompany/swift-build
917917
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -1109,13 +1109,13 @@ jobs:
11091109
path: ${{ github.workspace }}/SourceCache/zlib
11101110
show-progress: false
11111111

1112-
- uses: compnerd/gha-setup-vsdevenv@main
1112+
- uses: compnerd/gha-setup-vsdevenv@f1ba60d553a3216ce1b89abe0201213536bc7557 # main
11131113
with:
11141114
host_arch: amd64
11151115
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
11161116
arch: ${{ matrix.arch }}
11171117

1118-
- uses: seanmiddleditch/gha-setup-ninja@master
1118+
- uses: seanmiddleditch/gha-setup-ninja@96bed6edff20d1dd61ecff9b75cc519d516e6401 # master
11191119
if: inputs.build_os == 'Darwin'
11201120

11211121
- name: Compute workspace hash
@@ -1197,13 +1197,13 @@ jobs:
11971197
name: zlib-${{ matrix.os }}-${{ matrix.arch }}-${{ inputs.zlib_version }}
11981198
path: ${{ github.workspace }}/BuildRoot/Library/zlib-${{ inputs.zlib_version }}/usr
11991199

1200-
- uses: compnerd/gha-setup-vsdevenv@main
1200+
- uses: compnerd/gha-setup-vsdevenv@f1ba60d553a3216ce1b89abe0201213536bc7557 # main
12011201
with:
12021202
host_arch: amd64
12031203
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
12041204
arch: ${{ matrix.arch }}
12051205

1206-
- uses: seanmiddleditch/gha-setup-ninja@master
1206+
- uses: seanmiddleditch/gha-setup-ninja@96bed6edff20d1dd61ecff9b75cc519d516e6401 # master
12071207
if: inputs.build_os == 'Darwin'
12081208

12091209
- name: Compute workspace hash
@@ -1356,13 +1356,13 @@ jobs:
13561356
path: ${{ github.workspace }}/SourceCache/libxml2
13571357
show-progress: false
13581358

1359-
- uses: compnerd/gha-setup-vsdevenv@main
1359+
- uses: compnerd/gha-setup-vsdevenv@f1ba60d553a3216ce1b89abe0201213536bc7557 # main
13601360
with:
13611361
host_arch: amd64
13621362
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
13631363
arch: ${{ matrix.arch }}
13641364

1365-
- uses: seanmiddleditch/gha-setup-ninja@master
1365+
- uses: seanmiddleditch/gha-setup-ninja@96bed6edff20d1dd61ecff9b75cc519d516e6401 # master
13661366
if: inputs.build_os == 'Darwin'
13671367

13681368
- name: Compute workspace hash
@@ -1574,15 +1574,15 @@ jobs:
15741574
# we have not yet built the runtime, this requires that we use the runtime
15751575
# from the previous build.
15761576
- name: Install Swift Toolchain
1577-
uses: compnerd/gha-setup-swift@main
1577+
uses: compnerd/gha-setup-swift@b6c5fc1ed5b5439ada8e7661985acb09ad8c3ba2 # main
15781578
with:
15791579
github-repo: thebrowsercompany/swift-build
15801580
github-token: ${{ secrets.GITHUB_TOKEN }}
15811581
release-asset-name: installer-amd64.exe
15821582
release-tag-name: '20231016.5'
15831583

15841584
# NOTE(compnerd): we execute unconditionally as we use CMake from VSDevEnv
1585-
- uses: compnerd/gha-setup-vsdevenv@main
1585+
- uses: compnerd/gha-setup-vsdevenv@f1ba60d553a3216ce1b89abe0201213536bc7557 # main
15861586
with:
15871587
host_arch: amd64
15881588
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
@@ -1772,7 +1772,7 @@ jobs:
17721772
show-progress: false
17731773

17741774
# NOTE(compnerd): we execute unconditionally as we use CMake from VSDevEnv
1775-
- uses: compnerd/gha-setup-vsdevenv@main
1775+
- uses: compnerd/gha-setup-vsdevenv@f1ba60d553a3216ce1b89abe0201213536bc7557 # main
17761776
with:
17771777
host_arch: amd64
17781778
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
@@ -2054,7 +2054,7 @@ jobs:
20542054
echo "SDKROOT=${SDKRoot}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
20552055
20562056
# NOTE(compnerd): we execute unconditionally as we use CMake from VSDevEnv
2057-
- uses: compnerd/gha-setup-vsdevenv@main
2057+
- uses: compnerd/gha-setup-vsdevenv@f1ba60d553a3216ce1b89abe0201213536bc7557 # main
20582058
with:
20592059
host_arch: amd64
20602060
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
@@ -2498,7 +2498,7 @@ jobs:
24982498
$SDKRoot = cygpath -w ${{ github.workspace }}/BinaryCache/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk
24992499
echo "SDKROOT=${SDKRoot}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
25002500
2501-
- uses: compnerd/gha-setup-vsdevenv@main
2501+
- uses: compnerd/gha-setup-vsdevenv@f1ba60d553a3216ce1b89abe0201213536bc7557 # main
25022502
with:
25032503
host_arch: amd64
25042504
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
@@ -3237,7 +3237,7 @@ jobs:
32373237
path: ${{ github.workspace }}/SourceCache/swift-installer-scripts
32383238
show-progress: false
32393239

3240-
- uses: compnerd/gha-setup-vsdevenv@main
3240+
- uses: compnerd/gha-setup-vsdevenv@f1ba60d553a3216ce1b89abe0201213536bc7557 # main
32413241
with:
32423242
host_arch: amd64
32433243
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
@@ -3410,7 +3410,7 @@ jobs:
34103410
path: ${{ github.workspace }}/SourceCache/swift-installer-scripts
34113411
show-progress: false
34123412

3413-
- uses: compnerd/gha-setup-vsdevenv@main
3413+
- uses: compnerd/gha-setup-vsdevenv@f1ba60d553a3216ce1b89abe0201213536bc7557 # main
34143414
with:
34153415
host_arch: amd64
34163416
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
@@ -3524,7 +3524,7 @@ jobs:
35243524
path: ${{ github.workspace }}/SourceCache/swift-installer-scripts
35253525
show-progress: false
35263526

3527-
- uses: compnerd/gha-setup-vsdevenv@main
3527+
- uses: compnerd/gha-setup-vsdevenv@f1ba60d553a3216ce1b89abe0201213536bc7557 # main
35283528
with:
35293529
host_arch: amd64
35303530
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
@@ -3648,7 +3648,7 @@ jobs:
36483648
path: ${{ github.workspace }}/SourceCache/swift-installer-scripts
36493649
show-progress: false
36503650

3651-
- uses: compnerd/gha-setup-vsdevenv@main
3651+
- uses: compnerd/gha-setup-vsdevenv@f1ba60d553a3216ce1b89abe0201213536bc7557 # main
36523652
with:
36533653
host_arch: amd64
36543654
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'

0 commit comments

Comments
 (0)