88env :
99 NPM_TAG : " next"
1010 EMULATOR_NAME : " runtime-emu"
11- NDK_VERSION : r27
11+ NDK_VERSION : r27d
1212 ANDROID_API : 33
1313 ANDROID_ABI : x86_64
1414 NDK_ARCH : darwin
@@ -24,21 +24,26 @@ jobs:
2424 npm_version : ${{ steps.npm_version_output.outputs.NPM_VERSION }}
2525 npm_tag : ${{ steps.npm_version_output.outputs.NPM_TAG }}
2626 steps :
27- - uses : actions/checkout@v3
27+ - name : Harden the runner (Audit all outbound calls)
28+ uses : step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
29+ with :
30+ egress-policy : audit
31+
32+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2833 with :
2934 fetch-depth : 0
3035 submodules : true
31- - uses : actions/setup-node@v3
36+ - uses : actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
3237 with :
3338 node-version : 22
3439 registry-url : " https://registry.npmjs.org"
35- - uses : actions/setup-java@v3
40+ - uses : actions/setup-java@17f84c3641ba7b8f6deff6309fc4c864478f5d62 # v3.14.1
3641 with :
3742 distribution : " temurin"
3843 java-version : " 21"
3944 cache : gradle
4045 - name : Setup Android SDK
41- uses : android-actions/setup-android@v2
46+ uses : android-actions/setup-android@7c5672355aaa8fde5f97a91aa9a99616d1ace6bc # v2.0.10
4247 - name : Homebrew dependencies
4348 run : |
4449 brew install wget
@@ -76,12 +81,12 @@ jobs:
7681 - name : Build npm package
7782 run : ./gradlew -PgitCommitVersion=${{ github.sha }} -PnoCCache --stacktrace
7883 - name : Upload npm package artifact
79- uses : actions/upload-artifact@v4
84+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
8085 with :
8186 name : npm-package
8287 path : dist/nativescript-android-${{steps.npm_version_output.outputs.NPM_VERSION}}.tgz
8388 - name : Upload debug symbols
84- uses : actions/upload-artifact@v4
89+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
8590 with :
8691 name : debug-symbols
8792 path : test-app/runtime/build/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/*
@@ -91,20 +96,25 @@ jobs:
9196 runs-on : macos-13
9297 needs : build
9398 steps :
94- - uses : actions/checkout@v3
99+ - name : Harden the runner (Audit all outbound calls)
100+ uses : step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
101+ with :
102+ egress-policy : audit
103+
104+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
95105 with :
96106 submodules : true
97- - uses : actions/setup-node@v3
107+ - uses : actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
98108 with :
99109 node-version : 22
100110 registry-url : " https://registry.npmjs.org"
101- - uses : actions/setup-java@v3
111+ - uses : actions/setup-java@17f84c3641ba7b8f6deff6309fc4c864478f5d62 # v3.14.1
102112 with :
103113 distribution : " temurin"
104114 java-version : " 21"
105115 cache : gradle
106116 - name : Setup Android SDK
107- uses : android-actions/setup-android@v2
117+ uses : android-actions/setup-android@7c5672355aaa8fde5f97a91aa9a99616d1ace6bc # v2.0.10
108118 - name : Homebrew dependencies
109119 run : |
110120 brew install wget
@@ -126,7 +136,7 @@ jobs:
126136 - name : SBG tests
127137 run : ./gradlew runSbgTests --stacktrace
128138 - name : Run unit tests
129- uses : ReactiveCircus/android-emulator-runner@v2
139+ uses : ReactiveCircus/android-emulator-runner@1dcd0090116d15e7c562f8db72807de5e036a4ed # v2.34.0
130140 with :
131141 api-level : ${{env.ANDROID_API}}
132142 # this is needed on API 30+
@@ -145,7 +155,12 @@ jobs:
145155 NPM_VERSION : ${{needs.build.outputs.npm_version}}
146156 NPM_TAG : ${{needs.build.outputs.npm_tag}}
147157 steps :
148- - uses : actions/setup-node@v3
158+ - name : Harden the runner (Audit all outbound calls)
159+ uses : step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
160+ with :
161+ egress-policy : audit
162+
163+ - uses : actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
149164 with :
150165 node-version : 22
151166 registry-url : " https://registry.npmjs.org"
@@ -171,10 +186,15 @@ jobs:
171186 env :
172187 NPM_VERSION : ${{needs.build.outputs.npm_version}}
173188 steps :
174- - uses : actions/checkout@v3
189+ - name : Harden the runner (Audit all outbound calls)
190+ uses : step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
191+ with :
192+ egress-policy : audit
193+
194+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
175195 with :
176196 fetch-depth : 0
177- - uses : actions/setup-node@v3
197+ - uses : actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
178198 with :
179199 node-version : 22
180200 - name : Setup
@@ -192,7 +212,7 @@ jobs:
192212 run : zip -r debug-symbols.zip .
193213 - name : Partial Changelog
194214 run : npx conventional-changelog -p angular -r2 > body.md
195- - uses : ncipollo/release-action@v1
215+ - uses : ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b # v1.20.0
196216 with :
197217 artifacts : " dist/nativescript-android-*.tgz,dist/debug-symbols/debug-symbols.zip"
198218 bodyFile : " body.md"
0 commit comments