7676 default : 30
7777 required : false
7878
79+ secrets :
80+ DEVELOCITY_ACCESS_KEY :
81+ description : ' Token for submitting build scan to Develocity'
82+ required : false
83+
7984env :
8085 MAVEN_ARGS : --batch-mode --show-version
8186 MAVEN_OPTS : -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
@@ -90,11 +95,13 @@ jobs:
9095 steps :
9196 - name : Checkout project
9297 if : ${{ !inputs.needs-source-tarball }}
93- uses : actions/checkout@v6
98+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
99+ with :
100+ persist-credentials : false
94101
95102 - name : Download source tarball
96103 if : ${{ inputs.needs-source-tarball }}
97- uses : actions/download-artifact@v8
104+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
98105 with :
99106 name : ratis-src
100107
@@ -105,7 +112,7 @@ jobs:
105112
106113 - name : Create cache for Maven dependencies
107114 if : ${{ inputs.script == 'build' }}
108- uses : actions/cache@v5
115+ uses : actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
109116 with :
110117 path : |
111118 ~/.m2/repository/*/*/*
@@ -116,7 +123,7 @@ jobs:
116123
117124 - name : Restore cache for Maven dependencies
118125 if : ${{ inputs.script != 'build' }}
119- uses : actions/cache/restore@v5
126+ uses : actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
120127 with :
121128 path : |
122129 ~/.m2/repository/*/*/*
@@ -128,15 +135,15 @@ jobs:
128135 - name : Download Maven repo
129136 id : download-maven-repo
130137 if : ${{ inputs.needs-maven-repo }}
131- uses : actions/download-artifact@v8
138+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
132139 with :
133140 name : maven-repo
134141 path : |
135142 ~/.m2/repository/org/apache/ratis
136143
137144 - name : Download binary tarball
138145 if : ${{ inputs.needs-binary-tarball }}
139- uses : actions/download-artifact@v8
146+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
140147 with :
141148 name : ratis-bin
142149
@@ -148,7 +155,7 @@ jobs:
148155
149156 - name : Setup java ${{ inputs.java-version }}
150157 if : ${{ inputs.java-version }}
151- uses : actions/setup-java@v5
158+ uses : actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
152159 with :
153160 distribution : ' temurin'
154161 java-version : ${{ inputs.java-version }}
@@ -169,7 +176,7 @@ jobs:
169176
170177 - name : Archive build results
171178 if : ${{ !cancelled() }}
172- uses : actions/upload-artifact@v7
179+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
173180 with :
174181 name : ${{ (inputs.split && format('{0}-{1}', inputs.script, inputs.split)) || inputs.script }}
175182 path : target/${{ inputs.script }}
@@ -179,7 +186,7 @@ jobs:
179186 # to avoid the need for 3 more inputs.
180187 - name : Store binaries for tests
181188 if : ${{ inputs.script == 'build' && !cancelled() }}
182- uses : actions/upload-artifact@v7
189+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
183190 with :
184191 name : ratis-bin
185192 path : |
@@ -188,7 +195,7 @@ jobs:
188195
189196 - name : Store source tarball for compilation
190197 if : ${{ inputs.script == 'build' && !cancelled() }}
191- uses : actions/upload-artifact@v7
198+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
192199 with :
193200 name : ratis-src
194201 path : |
@@ -197,7 +204,7 @@ jobs:
197204
198205 - name : Store Maven repo for tests
199206 if : ${{ inputs.script == 'build' && !cancelled() }}
200- uses : actions/upload-artifact@v7
207+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
201208 with :
202209 name : maven-repo
203210 path : |
0 commit comments