1313 ANDROID_ABI : x86_64
1414 NDK_ARCH : darwin
1515
16+ permissions :
17+ contents : read
18+
1619jobs :
1720 build :
1821 name : Build
@@ -21,21 +24,26 @@ jobs:
2124 npm_version : ${{ steps.npm_version_output.outputs.NPM_VERSION }}
2225 npm_tag : ${{ steps.npm_version_output.outputs.NPM_TAG }}
2326 steps :
24- - 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
2533 with :
2634 fetch-depth : 0
2735 submodules : true
28- - uses : actions/setup-node@v3
36+ - uses : actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
2937 with :
3038 node-version : 22
3139 registry-url : " https://registry.npmjs.org"
32- - uses : actions/setup-java@v3
40+ - uses : actions/setup-java@17f84c3641ba7b8f6deff6309fc4c864478f5d62 # v3.14.1
3341 with :
3442 distribution : " temurin"
3543 java-version : " 21"
3644 cache : gradle
3745 - name : Setup Android SDK
38- uses : android-actions/setup-android@v2
46+ uses : android-actions/setup-android@7c5672355aaa8fde5f97a91aa9a99616d1ace6bc # v2.0.10
3947 - name : Homebrew dependencies
4048 run : |
4149 brew install wget
@@ -73,12 +81,12 @@ jobs:
7381 - name : Build npm package
7482 run : ./gradlew -PgitCommitVersion=${{ github.sha }} -PnoCCache --stacktrace
7583 - name : Upload npm package artifact
76- uses : actions/upload-artifact@v4
84+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7785 with :
7886 name : npm-package
7987 path : dist/nativescript-android-${{steps.npm_version_output.outputs.NPM_VERSION}}.tgz
8088 - name : Upload debug symbols
81- uses : actions/upload-artifact@v4
89+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
8290 with :
8391 name : debug-symbols
8492 path : test-app/runtime/build/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/*
@@ -88,20 +96,25 @@ jobs:
8896 runs-on : macos-13
8997 needs : build
9098 steps :
91- - 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
92105 with :
93106 submodules : true
94- - uses : actions/setup-node@v3
107+ - uses : actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
95108 with :
96109 node-version : 22
97110 registry-url : " https://registry.npmjs.org"
98- - uses : actions/setup-java@v3
111+ - uses : actions/setup-java@17f84c3641ba7b8f6deff6309fc4c864478f5d62 # v3.14.1
99112 with :
100113 distribution : " temurin"
101114 java-version : " 21"
102115 cache : gradle
103116 - name : Setup Android SDK
104- uses : android-actions/setup-android@v2
117+ uses : android-actions/setup-android@7c5672355aaa8fde5f97a91aa9a99616d1ace6bc # v2.0.10
105118 - name : Homebrew dependencies
106119 run : |
107120 brew install wget
@@ -123,7 +136,7 @@ jobs:
123136 - name : SBG tests
124137 run : ./gradlew runSbgTests --stacktrace
125138 - name : Run unit tests
126- uses : ReactiveCircus/android-emulator-runner@v2
139+ uses : ReactiveCircus/android-emulator-runner@1dcd0090116d15e7c562f8db72807de5e036a4ed # v2.34.0
127140 with :
128141 api-level : ${{env.ANDROID_API}}
129142 # this is needed on API 30+
@@ -142,7 +155,12 @@ jobs:
142155 NPM_VERSION : ${{needs.build.outputs.npm_version}}
143156 NPM_TAG : ${{needs.build.outputs.npm_tag}}
144157 steps :
145- - 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
146164 with :
147165 node-version : 22
148166 registry-url : " https://registry.npmjs.org"
@@ -168,10 +186,15 @@ jobs:
168186 env :
169187 NPM_VERSION : ${{needs.build.outputs.npm_version}}
170188 steps :
171- - 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
172195 with :
173196 fetch-depth : 0
174- - uses : actions/setup-node@v3
197+ - uses : actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
175198 with :
176199 node-version : 22
177200 - name : Setup
@@ -189,7 +212,7 @@ jobs:
189212 run : zip -r debug-symbols.zip .
190213 - name : Partial Changelog
191214 run : npx conventional-changelog -p angular -r2 > body.md
192- - uses : ncipollo/release-action@v1
215+ - uses : ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b # v1.20.0
193216 with :
194217 artifacts : " dist/nativescript-android-*.tgz,dist/debug-symbols/debug-symbols.zip"
195218 bodyFile : " body.md"
0 commit comments