@@ -17,23 +17,27 @@ jobs:
17
17
npm_version : ${{ steps.npm_version_output.outputs.NPM_VERSION }}
18
18
npm_tag : ${{ steps.npm_version_output.outputs.NPM_TAG }}
19
19
steps :
20
- - uses : maxim-lobanov/setup-xcode@v1
20
+ - name : Harden the runner (Audit all outbound calls)
21
+ uses : step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
22
+ with :
23
+ egress-policy : audit
24
+ - uses : maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
21
25
with :
22
26
xcode-version : ${{env.XCODE_VERSION}}
23
- - uses : actions/checkout@v3
27
+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
24
28
with :
25
29
fetch-depth : 0
26
30
- name : LLVM cache
27
- uses : actions/cache@v3
31
+ uses : actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
28
32
with :
29
33
path : ./llvm
30
34
key : ${{ hashFiles('download_llvm.sh') }}
31
- - uses : actions/setup-node@v3
35
+ - uses : actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
32
36
with :
33
37
node-version : 20
34
38
registry-url : " https://registry.npmjs.org"
35
39
- name : Install Python
36
- uses : actions/setup-python@v4
40
+ uses : actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
37
41
with :
38
42
python-version : " 3"
39
43
- name : Install Dependencies
@@ -68,12 +72,12 @@ jobs:
68
72
- name : Build
69
73
run : npm run build-ios
70
74
- name : Upload npm package artifact
71
- uses : actions/upload-artifact@v4
75
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
72
76
with :
73
77
name : npm-package
74
78
path : dist/nativescript-ios-${{steps.npm_version_output.outputs.NPM_VERSION}}.tgz
75
79
- name : Upload dSYMs artifact
76
- uses : actions/upload-artifact@v4
80
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
77
81
with :
78
82
name : NativeScript-dSYMs
79
83
path : dist/dSYMs
@@ -82,20 +86,24 @@ jobs:
82
86
runs-on : macos-14
83
87
needs : build
84
88
steps :
85
- - uses : maxim-lobanov/setup-xcode@v1
89
+ - name : Harden the runner (Audit all outbound calls)
90
+ uses : step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
91
+ with :
92
+ egress-policy : audit
93
+ - uses : maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
86
94
with :
87
95
xcode-version : ${{env.XCODE_VERSION}}
88
- - uses : actions/checkout@v3
96
+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
89
97
- name : LLVM cache
90
- uses : actions/cache@v3
98
+ uses : actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
91
99
with :
92
100
path : ./llvm
93
101
key : ${{ hashFiles('download_llvm.sh') }}
94
- - uses : actions/setup-node@v3
102
+ - uses : actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
95
103
with :
96
104
node-version : 20
97
105
- name : Install Python
98
- uses : actions/setup-python@v4
106
+ uses : actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
99
107
with :
100
108
python-version : " 3"
101
109
- name : Install Dependencies
@@ -120,7 +128,7 @@ jobs:
120
128
mkdir -p dist-test
121
129
echo TEST_FOLDER=$(pwd)/dist-test >> $GITHUB_ENV
122
130
- name : Xcode Tests
123
- uses : nick-fields/retry@v2
131
+ uses : nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
124
132
# try to run the tests with xcpretty. If it fails then try again without xcpretty twice for better log output
125
133
# 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
126
134
with :
@@ -136,7 +144,7 @@ jobs:
136
144
find $TEST_FOLDER/test-out -name "*junit*.xml" -maxdepth 1 -print0 | xargs -n 1 -0 npx verify-junit-xml
137
145
- name : Archive Test Result Data
138
146
if : always()
139
- uses : actions/upload-artifact@v4
147
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
140
148
with :
141
149
name : test-results
142
150
path : ${{env.TEST_FOLDER}}/test_results.xcresult
@@ -152,11 +160,15 @@ jobs:
152
160
NPM_VERSION : ${{needs.build.outputs.npm_version}}
153
161
NPM_TAG : ${{needs.build.outputs.npm_tag}}
154
162
steps :
155
- - uses : actions/setup-node@v3
163
+ - name : Harden the runner (Audit all outbound calls)
164
+ uses : step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
165
+ with :
166
+ egress-policy : audit
167
+ - uses : actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
156
168
with :
157
169
node-version : 20
158
170
registry-url : " https://registry.npmjs.org"
159
-
171
+ - uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
160
172
with :
161
173
name : npm-package
162
174
path : dist
@@ -178,19 +190,23 @@ jobs:
178
190
env :
179
191
NPM_VERSION : ${{needs.build.outputs.npm_version}}
180
192
steps :
181
- - uses : actions/checkout@v3
193
+ - name : Harden the runner (Audit all outbound calls)
194
+ uses : step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
195
+ with :
196
+ egress-policy : audit
197
+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
182
198
with :
183
199
fetch-depth : 0
184
- - uses : actions/setup-node@v3
200
+ - uses : actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
185
201
with :
186
202
node-version : 20
187
203
- name : Setup
188
204
run : npm install
189
-
205
+ - uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
190
206
with :
191
207
name : npm-package
192
208
path : dist
193
-
209
+ - uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
194
210
with :
195
211
name : NativeScript-dSYMs
196
212
path : dist/dSYMs
@@ -199,8 +215,9 @@ jobs:
199
215
run : find . -maxdepth 1 -name '*.dSYM' -print | xargs -I@ zip -r @.zip @
200
216
- name : Partial Changelog
201
217
run : npx conventional-changelog -p angular -r2 > body.md
202
- - uses : ncipollo/release-action@v1
218
+ - uses : ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b # v1.20.0
203
219
with :
204
220
artifacts : " dist/nativescript-ios-*.tgz,dist/dSYMs/*.zip"
205
221
bodyFile : " body.md"
206
222
prerelease : ${{needs.build.outputs.npm_tag != 'latest'}}
223
+ allowUpdates : true
0 commit comments