Skip to content

Commit 6dde203

Browse files
committed
feat: pin dependencies in workflows
Similar to NativeScript/android#1843
1 parent fb56643 commit 6dde203

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
@@ -61,12 +61,12 @@ jobs:
6161
- name: Build
6262
run: npm run build-ios
6363
- name: Upload npm package artifact
64-
uses: actions/upload-artifact@v4
64+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6565
with:
6666
name: npm-package
6767
path: dist/nativescript-ios-${{steps.npm_version_output.outputs.NPM_VERSION}}.tgz
6868
- name: Upload dSYMs artifact
69-
uses: actions/upload-artifact@v4
69+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7070
with:
7171
name: NativeScript-dSYMs
7272
path: dist/dSYMs
@@ -75,20 +75,20 @@ jobs:
7575
runs-on: macos-14
7676
needs: build
7777
steps:
78-
- uses: maxim-lobanov/setup-xcode@v1
78+
- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
7979
with:
8080
xcode-version: ${{env.XCODE_VERSION}}
81-
- uses: actions/checkout@v3
81+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
8282
- name: LLVM cache
83-
uses: actions/cache@v3
83+
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
8484
with:
8585
path: ./llvm
8686
key: ${{ hashFiles('download_llvm.sh') }}
87-
- uses: actions/setup-node@v3
87+
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
8888
with:
8989
node-version: 20
9090
- name: Install Python
91-
uses: actions/setup-python@v4
91+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
9292
with:
9393
python-version: "3"
9494
- name: Install Dependencies
@@ -106,7 +106,7 @@ jobs:
106106
mkdir -p dist-test
107107
echo TEST_FOLDER=$(pwd)/dist-test >> $GITHUB_ENV
108108
- name: Xcode Tests
109-
uses: nick-fields/retry@v2
109+
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
110110
# try to run the tests with xcpretty. If it fails then try again without xcpretty twice for better log output
111111
# 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
112112
with:
@@ -122,7 +122,7 @@ jobs:
122122
find $TEST_FOLDER/test-out -name "*junit*.xml" -maxdepth 1 -print0 | xargs -n 1 -0 npx verify-junit-xml
123123
- name: Archive Test Result Data
124124
if: always()
125-
uses: actions/upload-artifact@v4
125+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
126126
with:
127127
name: test-results
128128
path: ${{env.TEST_FOLDER}}/test_results.xcresult
@@ -138,11 +138,11 @@ jobs:
138138
NPM_VERSION: ${{needs.build.outputs.npm_version}}
139139
NPM_TAG: ${{needs.build.outputs.npm_tag}}
140140
steps:
141-
- uses: actions/setup-node@v3
141+
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
142142
with:
143143
node-version: 20
144144
registry-url: "https://registry.npmjs.org"
145-
- uses: actions/[email protected]
145+
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
146146
with:
147147
name: npm-package
148148
path: dist
@@ -164,19 +164,19 @@ jobs:
164164
env:
165165
NPM_VERSION: ${{needs.build.outputs.npm_version}}
166166
steps:
167-
- uses: actions/checkout@v3
167+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
168168
with:
169169
fetch-depth: 0
170-
- uses: actions/setup-node@v3
170+
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
171171
with:
172172
node-version: 20
173173
- name: Setup
174174
run: npm install
175-
- uses: actions/[email protected]
175+
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
176176
with:
177177
name: npm-package
178178
path: dist
179-
- uses: actions/[email protected]
179+
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
180180
with:
181181
name: NativeScript-dSYMs
182182
path: dist/dSYMs
@@ -185,7 +185,7 @@ jobs:
185185
run: find . -maxdepth 1 -name '*.dSYM' -print | xargs -I@ zip -r @.zip @
186186
- name: Partial Changelog
187187
run: npx conventional-changelog -p angular -r2 > body.md
188-
- uses: ncipollo/release-action@v1
188+
- uses: ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b # v1.20.0
189189
with:
190190
artifacts: "dist/nativescript-ios-*.tgz,dist/dSYMs/*.zip"
191191
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
@@ -45,12 +45,12 @@ jobs:
4545
- name: Build
4646
run: npm run build-ios
4747
- name: Upload npm package artifact
48-
uses: actions/upload-artifact@v4
48+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4949
with:
5050
name: npm-package
5151
path: dist/nativescript-ios-${{env.NPM_VERSION}}.tgz
5252
- name: Upload dSYMs artifact
53-
uses: actions/upload-artifact@v4
53+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5454
with:
5555
name: NativeScript-dSYMs
5656
path: dist/dSYMs
@@ -59,20 +59,20 @@ jobs:
5959
runs-on: macos-14
6060
needs: build
6161
steps:
62-
- uses: maxim-lobanov/setup-xcode@v1
62+
- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
6363
with:
6464
xcode-version: ${{env.XCODE_VERSION}}
65-
- uses: actions/checkout@v3
65+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
6666
- name: LLVM cache
67-
uses: actions/cache@v3
67+
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
6868
with:
6969
path: ./llvm
7070
key: ${{ hashFiles('download_llvm.sh') }}
71-
- uses: actions/setup-node@v3
71+
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
7272
with:
7373
node-version: 20
7474
- name: Install Python
75-
uses: actions/setup-python@v4
75+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
7676
with:
7777
python-version: "3"
7878
- name: Install Dependencies
@@ -89,7 +89,7 @@ jobs:
8989
mkdir -p dist-test
9090
echo TEST_FOLDER=$(pwd)/dist-test >> $GITHUB_ENV
9191
- name: Xcode Tests
92-
uses: nick-fields/retry@v2
92+
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
9393
# try to run the tests with xcpretty. If it fails then try again without xcpretty twice for better log output
9494
# 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
9595
with:
@@ -105,7 +105,7 @@ jobs:
105105
find $TEST_FOLDER/test-out -name "*junit*.xml" -maxdepth 1 -print0 | xargs -n 1 -0 npx verify-junit-xml
106106
- name: Archive Test Result Data
107107
if: always()
108-
uses: actions/upload-artifact@v4
108+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
109109
with:
110110
name: test-results
111111
path: ${{env.TEST_FOLDER}}/test_results.xcresult

0 commit comments

Comments
 (0)