Skip to content

Commit 0d042b4

Browse files
authored
chore: pin dependencies in workflows (#284)
Similar to NativeScript/android#1843
1 parent f156f63 commit 0d042b4

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

.github/workflows/npm_release.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ jobs:
1717
npm_version: ${{ steps.npm_version_output.outputs.NPM_VERSION }}
1818
npm_tag: ${{ steps.npm_version_output.outputs.NPM_TAG }}
1919
steps:
20-
- uses: maxim-lobanov/setup-xcode@v1
20+
- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
2121
with:
2222
xcode-version: ${{env.XCODE_VERSION}}
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2424
with:
2525
fetch-depth: 0
2626
- name: LLVM cache
27-
uses: actions/cache@v3
27+
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
2828
with:
2929
path: ./llvm
3030
key: ${{ hashFiles('download_llvm.sh') }}
31-
- uses: actions/setup-node@v3
31+
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
3232
with:
3333
node-version: 20
3434
registry-url: "https://registry.npmjs.org"
3535
- name: Install Python
36-
uses: actions/setup-python@v4
36+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
3737
with:
3838
python-version: "3"
3939
- name: Install Dependencies
@@ -68,12 +68,12 @@ jobs:
6868
- name: Build
6969
run: npm run build-ios
7070
- name: Upload npm package artifact
71-
uses: actions/upload-artifact@v4
71+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7272
with:
7373
name: npm-package
7474
path: dist/nativescript-ios-${{steps.npm_version_output.outputs.NPM_VERSION}}.tgz
7575
- name: Upload dSYMs artifact
76-
uses: actions/upload-artifact@v4
76+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7777
with:
7878
name: NativeScript-dSYMs
7979
path: dist/dSYMs
@@ -82,20 +82,20 @@ jobs:
8282
runs-on: macos-14
8383
needs: build
8484
steps:
85-
- uses: maxim-lobanov/setup-xcode@v1
85+
- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
8686
with:
8787
xcode-version: ${{env.XCODE_VERSION}}
88-
- uses: actions/checkout@v3
88+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
8989
- name: LLVM cache
90-
uses: actions/cache@v3
90+
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
9191
with:
9292
path: ./llvm
9393
key: ${{ hashFiles('download_llvm.sh') }}
94-
- uses: actions/setup-node@v3
94+
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
9595
with:
9696
node-version: 20
9797
- name: Install Python
98-
uses: actions/setup-python@v4
98+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
9999
with:
100100
python-version: "3"
101101
- name: Install Dependencies
@@ -120,7 +120,7 @@ jobs:
120120
mkdir -p dist-test
121121
echo TEST_FOLDER=$(pwd)/dist-test >> $GITHUB_ENV
122122
- name: Xcode Tests
123-
uses: nick-fields/retry@v2
123+
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
124124
# try to run the tests with xcpretty. If it fails then try again without xcpretty twice for better log output
125125
# the xcode tests are a bit flaky and they should never fail on this step, as this step only collects the JS test results as junit xml
126126
with:
@@ -136,7 +136,7 @@ jobs:
136136
find $TEST_FOLDER/test-out -name "*junit*.xml" -maxdepth 1 -print0 | xargs -n 1 -0 npx verify-junit-xml
137137
- name: Archive Test Result Data
138138
if: always()
139-
uses: actions/upload-artifact@v4
139+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
140140
with:
141141
name: test-results
142142
path: ${{env.TEST_FOLDER}}/test_results.xcresult
@@ -152,11 +152,11 @@ jobs:
152152
NPM_VERSION: ${{needs.build.outputs.npm_version}}
153153
NPM_TAG: ${{needs.build.outputs.npm_tag}}
154154
steps:
155-
- uses: actions/setup-node@v3
155+
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
156156
with:
157157
node-version: 20
158158
registry-url: "https://registry.npmjs.org"
159-
- uses: actions/[email protected]
159+
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
160160
with:
161161
name: npm-package
162162
path: dist
@@ -178,19 +178,19 @@ jobs:
178178
env:
179179
NPM_VERSION: ${{needs.build.outputs.npm_version}}
180180
steps:
181-
- uses: actions/checkout@v3
181+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
182182
with:
183183
fetch-depth: 0
184-
- uses: actions/setup-node@v3
184+
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
185185
with:
186186
node-version: 20
187187
- name: Setup
188188
run: npm install
189-
- uses: actions/[email protected]
189+
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
190190
with:
191191
name: npm-package
192192
path: dist
193-
- uses: actions/[email protected]
193+
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
194194
with:
195195
name: NativeScript-dSYMs
196196
path: dist/dSYMs
@@ -199,7 +199,7 @@ jobs:
199199
run: find . -maxdepth 1 -name '*.dSYM' -print | xargs -I@ zip -r @.zip @
200200
- name: Partial Changelog
201201
run: npx conventional-changelog -p angular -r2 > body.md
202-
- uses: ncipollo/release-action@v1
202+
- uses: ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b # v1.20.0
203203
with:
204204
artifacts: "dist/nativescript-ios-*.tgz,dist/dSYMs/*.zip"
205205
bodyFile: "body.md"

.github/workflows/pull_request.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@ jobs:
1010
name: Build
1111
runs-on: macos-14
1212
steps:
13-
- uses: maxim-lobanov/setup-xcode@v1
13+
- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
1414
with:
1515
xcode-version: ${{env.XCODE_VERSION}}
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
1717
with:
1818
fetch-depth: 0
1919
- name: LLVM cache
20-
uses: actions/cache@v3
20+
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
2121
with:
2222
path: ./llvm
2323
key: ${{ hashFiles('download_llvm.sh') }}
24-
- uses: actions/setup-node@v3
24+
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
2525
with:
2626
node-version: 20
2727
- name: Install Python
28-
uses: actions/setup-python@v4
28+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
2929
with:
3030
python-version: "3"
3131
- name: Install Dependencies
@@ -52,12 +52,12 @@ jobs:
5252
- name: Build
5353
run: npm run build-ios
5454
- name: Upload npm package artifact
55-
uses: actions/upload-artifact@v4
55+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5656
with:
5757
name: npm-package
5858
path: dist/nativescript-ios-${{env.NPM_VERSION}}.tgz
5959
- name: Upload dSYMs artifact
60-
uses: actions/upload-artifact@v4
60+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6161
with:
6262
name: NativeScript-dSYMs
6363
path: dist/dSYMs
@@ -66,20 +66,20 @@ jobs:
6666
runs-on: macos-14
6767
needs: build
6868
steps:
69-
- uses: maxim-lobanov/setup-xcode@v1
69+
- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
7070
with:
7171
xcode-version: ${{env.XCODE_VERSION}}
72-
- uses: actions/checkout@v3
72+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
7373
- name: LLVM cache
74-
uses: actions/cache@v3
74+
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
7575
with:
7676
path: ./llvm
7777
key: ${{ hashFiles('download_llvm.sh') }}
78-
- uses: actions/setup-node@v3
78+
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
7979
with:
8080
node-version: 20
8181
- name: Install Python
82-
uses: actions/setup-python@v4
82+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
8383
with:
8484
python-version: "3"
8585
- name: Install Dependencies
@@ -103,7 +103,7 @@ jobs:
103103
mkdir -p dist-test
104104
echo TEST_FOLDER=$(pwd)/dist-test >> $GITHUB_ENV
105105
- name: Xcode Tests
106-
uses: nick-fields/retry@v2
106+
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
107107
# try to run the tests with xcpretty. If it fails then try again without xcpretty twice for better log output
108108
# the xcode tests are a bit flaky and they should never fail on this step, as this step only collects the JS test results as junit xml
109109
with:
@@ -119,7 +119,7 @@ jobs:
119119
find $TEST_FOLDER/test-out -name "*junit*.xml" -maxdepth 1 -print0 | xargs -n 1 -0 npx verify-junit-xml
120120
- name: Archive Test Result Data
121121
if: always()
122-
uses: actions/upload-artifact@v4
122+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
123123
with:
124124
name: test-results
125125
path: ${{env.TEST_FOLDER}}/test_results.xcresult

0 commit comments

Comments
 (0)