2929 timeout-minutes : 15
3030
3131 steps :
32- - uses : actions/checkout@v6
32+ - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
33+ with :
34+ persist-credentials : false
3335
3436 - uses : ./.github/actions/setup-java
3537
4547 timeout-minutes : 15
4648
4749 steps :
48- - uses : actions/checkout@v6
50+ - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
51+ with :
52+ persist-credentials : false
4953
5054 - uses : ./.github/actions/setup-java
5155
@@ -62,20 +66,21 @@ jobs:
6266 contents : write
6367
6468 steps :
65- - uses : actions/create-github-app-token@v2
69+ - uses : actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
6670 id : app-token
6771 with :
6872 app-id : ${{ vars.GH_APP_ID }}
6973 private-key : ${{ secrets.GH_APP_PRIVATE_KEY }}
7074
71- - uses : actions/checkout@v6
75+ - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
7276 with :
7377 token : ${{ steps.app-token.outputs.token }}
78+ persist-credentials : false
7479
7580 - name : Fetch Dependabot metadata
7681 id : dependabot-metadata
77- uses : dependabot/fetch-metadata@v2.5.0
78- if : ${{ github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' }}
82+ uses : dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a # v2.5.0
83+ if : ${{ github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]' }}
7984 with :
8085 github-token : " ${{ steps.app-token.outputs.token }}"
8186
@@ -95,27 +100,27 @@ jobs:
95100 - uses : ./.github/actions/setup-java
96101
97102 - name : Validate Gradle Wrapper
98- uses : gradle/actions/wrapper-validation@v5
103+ uses : gradle/actions/wrapper-validation@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
99104
100105 - name : Build
101106 run : |
102107 ./gradlew assemble${{ env.flavour }}${{ env.config }} -PdisablePreDex
103108
104109 - name : Tokens check
105- if : ${{ github.event_name != 'pull_request' || github.actor != 'dependabot[bot]' || github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' && !contains(steps.dependabot-metadata.outputs.dependency-names, 'bpk-') }}
110+ if : ${{ github.event_name != 'pull_request' || github.actor != 'dependabot[bot]' || github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]' && !contains(steps.dependabot-metadata.outputs.dependency-names, 'bpk-') }}
106111 run : |
107112 ./gradlew generateTokens -PdisablePreDex
108113 ./scripts/check-no-changes.sh
109114
110115 - name : Token update
111116 id : tokenUpdate
112- if : ${{ github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' && contains(steps.dependabot-metadata.outputs.dependency-names, 'bpk-')}}
117+ if : ${{ github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]' && contains(steps.dependabot-metadata.outputs.dependency-names, 'bpk-')}}
113118 run : |
114119 ./gradlew generateTokens -PdisablePreDex
115120 changedFiles=`git status --porcelain` && echo "CHANGED_FILES=${changedFiles//$'\n'/'%0A'}" >> $GITHUB_OUTPUT
116121
117122 - name : Token commit
118- if : ${{ github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' && steps.tokenUpdate.outputs.CHANGED_FILES != '' && contains(steps.dependabot-metadata.outputs.dependency-names, 'bpk-') }}
123+ if : ${{ github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]' && steps.tokenUpdate.outputs.CHANGED_FILES != '' && contains(steps.dependabot-metadata.outputs.dependency-names, 'bpk-') }}
119124 run : |
120125 git config --local user.email "197108191+skyscanner-backpack-bot[bot]@users.noreply.github.com"
121126 git config --local user.name "skyscanner-backpack-bot[bot]"
@@ -138,7 +143,9 @@ jobs:
138143 steps :
139144
140145 - name : Checkout
141- uses : actions/checkout@v6
146+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
147+ with :
148+ persist-credentials : false
142149
143150 - name : Enable KVM group perms
144151 run : |
@@ -149,7 +156,7 @@ jobs:
149156 - uses : ./.github/actions/setup-java
150157
151158 - name : AVD cache
152- uses : actions/cache@v5
159+ uses : actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
153160 id : avd-cache
154161 with :
155162 path : |
@@ -159,7 +166,7 @@ jobs:
159166
160167 - name : create AVD and generate snapshot for caching
161168 if : steps.avd-cache.outputs.cache-hit != 'true'
162- uses : reactivecircus/android-emulator-runner@v2
169+ uses : reactivecircus/android-emulator-runner@b530d96654c385303d652368551fb075bc2f0b6b # v2.35.0
163170 with :
164171 profile : Nexus 4
165172 sdcard-path-or-size : 512M
@@ -171,7 +178,7 @@ jobs:
171178 script : echo "Generated AVD snapshot for caching."
172179
173180 - name : Android Tests
174- uses : reactivecircus/android-emulator-runner@v2
181+ uses : reactivecircus/android-emulator-runner@b530d96654c385303d652368551fb075bc2f0b6b # v2.35.0
175182 with :
176183 profile : Nexus 4
177184 sdcard-path-or-size : 512M
@@ -212,7 +219,9 @@ jobs:
212219 flag : themed
213220 steps :
214221 - name : Checkout
215- uses : actions/checkout@v6
222+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
223+ with :
224+ persist-credentials : false
216225
217226 - uses : ./.github/actions/setup-java
218227
@@ -222,7 +231,7 @@ jobs:
222231 ./gradlew app:recordRoborazziOssDebug -Dvariant=${{ matrix.variant.flag }}
223232
224233 - name : Upload Screenshots
225- uses : actions/upload-artifact@v6
234+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
226235 with :
227236 name : screenshots-${{ matrix.variant.flag }}
228237 path : app/screenshots/
@@ -237,19 +246,20 @@ jobs:
237246 contents : write
238247 timeout-minutes : 5
239248 steps :
240- - uses : actions/create-github-app-token@v2
249+ - uses : actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
241250 id : app-token
242251 with :
243252 app-id : ${{ vars.GH_APP_ID }}
244253 private-key : ${{ secrets.GH_APP_PRIVATE_KEY }}
245254
246255 - name : Checkout
247- uses : actions/checkout@v6
256+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
248257 with :
249258 token : ${{ steps.app-token.outputs.token }}
259+ persist-credentials : false
250260
251261 - name : Download all screenshot artifacts
252- uses : actions/download-artifact@v7
262+ uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
253263 with :
254264 path : screenshot-artifacts
255265
0 commit comments