2626 steps :
2727
2828 - name : Set up JDK
29- uses : actions/setup-java@v3
29+ uses : actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3
3030 with :
3131 distribution : ${{inputs.distribution}}
3232 java-version : ${{inputs.java-version}}
3636 uses : ./.github/actions/gradle-args
3737
3838 - name : Gradle build action
39- uses : gradle/gradle-build-action@v2
39+ uses : gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2
4040 with :
4141 cache-read-only : false
4242 gradle-home-cache-cleanup : true
5959 - name : restore cache for ${{inputs.write-cache-key}}
6060 id : restore-write-cache
6161 if : inputs.write-cache-key != 'null'
62- uses : actions/cache/restore@v4
62+ uses : actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
6363 with :
6464 path : |
6565 ~/.gradle/caches/build-cache-1
7777 # Skipped if the restore-cache-key wasn't set, or if the write-cache-key restore had an exact match.
7878 - name : restore cache for ${{inputs.restore-cache-key}}
7979 if : inputs.restore-cache-key != 'null' && steps.restore-write-cache.outputs.cache-hit != 'true'
80- uses : actions/cache/restore@v4
80+ uses : actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
8181 with :
8282 path : |
8383 ~/.gradle/caches/build-cache-1
@@ -91,11 +91,11 @@ runs :
9191 ${{runner.os}}-${{inputs.restore-cache-key}}-${{steps.hashes.outputs.lib_versions}}
9292 ${{runner.os}}-${{inputs.restore-cache-key}}
9393
94- - uses : gradle/wrapper-validation-action@v1
94+ - uses : gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # v1
9595
9696 # Run the actual task. Note that this still uses gradle-build-action for more fine-grained caching.
9797 - name : Run ${{inputs.task}}
98- uses : gradle/gradle-build-action@v2
98+ uses : gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2
9999 with :
100100 # These arguments need to be on a single line. If they're defined with wrapping (using `|`),
101101 # something along the way to the actual CLI invocation gets confused and the jvmargs list
@@ -110,7 +110,7 @@ runs :
110110 # Windows runners are welcome to *read* the cross-OS cache, but the directories get weird if
111111 # they try to write to it.
112112 - name : save the '${{inputs.write-cache-key}}' cache
113- uses : actions/cache/save@v4
113+ uses : actions/cache/save@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
114114 id : save-write-cache-key
115115 if : inputs.write-cache-key != 'null' && steps.restore-write-cache.outputs.cache-hit != 'true'
116116 with :
@@ -123,7 +123,7 @@ runs :
123123
124124 - name : Upload heap dump
125125 if : failure()
126- uses : actions/upload-artifact@v3
126+ uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
127127 with :
128128 name : heap-dump
129129 path : ${{github.workspace}}/**/*{.hprof,.log}
0 commit comments