@@ -30,14 +30,18 @@ jobs:
3030 name : ' Validate Dagger version'
3131 runs-on : ubuntu-latest
3232 steps :
33- - uses : actions/checkout@v4
33+ - uses : actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
34+ with :
35+ persist-credentials : false
3436 - uses : ./.github/actions/prechecks
3537 bazel-build :
3638 name : ' Bazel build'
3739 needs : validate-latest-dagger-version
3840 runs-on : ubuntu-latest
3941 steps :
40- - uses : actions/checkout@v4
42+ - uses : actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
43+ with :
44+ persist-credentials : false
4145 - uses : ./.github/actions/bazel-build
4246 bazel-test :
4347 name : ' Bazel tests'
@@ -46,22 +50,28 @@ jobs:
4650 group : large-runner-group
4751 labels : ubuntu-22.04-16core
4852 steps :
49- - uses : actions/checkout@v4
53+ - uses : actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
54+ with :
55+ persist-credentials : false
5056 - uses : ./.github/actions/bazel-test
5157 gradle-build :
5258 name : ' Gradle build'
5359 runs-on :
5460 group : large-runner-group
5561 labels : ubuntu-22.04-16core
5662 steps :
57- - uses : actions/checkout@v4
63+ - uses : actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
64+ with :
65+ persist-credentials : false
5866 - uses : ./.github/actions/gradle-build
5967 artifact-verification-tests :
6068 name : ' Artifact verification tests'
6169 needs : bazel-build
6270 runs-on : ubuntu-latest
6371 steps :
64- - uses : actions/checkout@v4
72+ - uses : actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
73+ with :
74+ persist-credentials : false
6575 - uses : ./.github/actions/artifact-verification-tests
6676 run-artifact-java-local-tests :
6777 name : ' Artifact Java local tests (Java ${{ matrix.java }}, Kotlin ${{ matrix.kotlin }})'
8292 USE_KOTLIN_VERSION : ${{ matrix.kotlin }}
8393 USE_KSP_VERSION : ${{ matrix.ksp }}
8494 steps :
85- - uses : actions/checkout@v4
95+ - uses : actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
96+ with :
97+ persist-credentials : false
8698 - uses : ./.github/actions/artifact-java-local-tests
8799 artifact-java-local-tests :
88100 name : ' Artifact Java local tests'
95107 needs : bazel-build
96108 runs-on : ubuntu-latest
97109 steps :
98- - uses : actions/checkout@v4
110+ - uses : actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
111+ with :
112+ persist-credentials : false
99113 - uses : ./.github/actions/test-gradle-plugin
100114 run-artifact-android-local-tests :
101115 name : ' Artifact Android local tests (AGP ${{ matrix.agp }}, Java ${{ matrix.java }}, Kotlin ${{ matrix.kotlin }})'
@@ -119,7 +133,9 @@ jobs:
119133 USE_KOTLIN_VERSION : ${{ matrix.kotlin }}
120134 USE_KSP_VERSION : ${{ matrix.ksp }}
121135 steps :
122- - uses : actions/checkout@v4
136+ - uses : actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
137+ with :
138+ persist-credentials : false
123139 - uses : ./.github/actions/artifact-android-local-tests
124140 artifact-android-local-tests :
125141 name : ' Artifact Android local tests'
@@ -138,7 +154,9 @@ jobs:
138154 matrix :
139155 api-level : [23, 26, 30]
140156 steps :
141- - uses : actions/checkout@v4
157+ - uses : actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
158+ with :
159+ persist-credentials : false
142160 - uses : ./.github/actions/artifact-android-emulator-tests
143161 timeout-minutes : 35
144162 with :
@@ -160,17 +178,19 @@ jobs:
160178 contents : write
161179 steps :
162180 - name : ' Install Java ${{ env.USE_JAVA_VERSION_FOR_BAZEL }}'
163- uses : actions/setup-java@v4
181+ uses : actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
164182 with :
165183 distribution : ' ${{ env.USE_JAVA_DISTRIBUTION }}'
166184 java-version : ' ${{ env.USE_JAVA_VERSION_FOR_BAZEL }}'
167185 server-id : sonatype-central-snapshots
168186 server-username : CI_DEPLOY_USERNAME
169187 server-password : CI_DEPLOY_PASSWORD
170188 - name : ' Check out repository'
171- uses : actions/checkout@v4
189+ uses : actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
190+ with :
191+ persist-credentials : false
172192 - name : ' Cache local Maven repository'
173- uses : actions/cache@v4
193+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
174194 with :
175195 path : |
176196 ~/.m2/repository
@@ -179,14 +199,14 @@ jobs:
179199 restore-keys : |
180200 ${{ runner.os }}-maven-
181201 - name : ' Cache Bazel files'
182- uses : actions/cache@v4
202+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
183203 with :
184204 path : ~/.cache/bazel_github # The bazel cache path set in .bazelrc.
185205 key : ${{ runner.os }}-bazel-build-${{ github.sha }}
186206 restore-keys : |
187207 ${{ runner.os }}-bazel-build-
188208 - name : ' Cache Gradle files'
189- uses : actions/cache@v4
209+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
190210 with :
191211 path : |
192212 ~/.gradle/caches
@@ -221,7 +241,9 @@ jobs:
221241 needs : bazel-build
222242 runs-on : ubuntu-latest
223243 steps :
224- - uses : actions/checkout@v4
244+ - uses : actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
245+ with :
246+ persist-credentials : false
225247 - uses : ./.github/actions/build-gradle-plugin
226248 with :
227249 agp : ' +'
@@ -238,5 +260,7 @@ jobs:
238260 ]
239261 runs-on : ubuntu-latest
240262 steps :
241- - uses : actions/checkout@v4
263+ - uses : actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
264+ with :
265+ persist-credentials : false
242266 - uses : ./.github/actions/cleanup-caches
0 commit comments