@@ -15,6 +15,8 @@ concurrency:
1515env :
1616 PYTHON_VERSION : ' 3.11'
1717
18+ permissions : read-all
19+
1820jobs :
1921 Build_and_test :
2022 name : Build and Test
@@ -51,21 +53,21 @@ jobs:
5153 apt-get install --assume-yes --no-install-recommends git git-lfs ca-certificates
5254
5355 - name : Clone OpenVINO
54- uses : actions/checkout@v4
56+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
5557 with :
5658 repository : ' openvinotoolkit/openvino'
5759 path : ${{ env.OPENVINO_REPO }}
5860 submodules : ' true'
5961 ref : ' master'
6062
6163 - name : Clone OpenVINO Contrib
62- uses : actions/checkout@v4
64+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
6365 with :
6466 path : ${{ env.OPENVINO_CONTRIB_REPO }}
6567 submodules : ' true'
66-
68+
6769 - name : Clone Testdata
68- uses : actions/checkout@v4
70+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
6971 with :
7072 repository : ' openvinotoolkit/testdata'
7173 path : ${{ env.TEST_DATA }}
@@ -81,22 +83,22 @@ jobs:
8183 bash ${OPENVINO_REPO}/install_build_dependencies.sh
8284 # default-jdk - Java API; unzip for gradle installation
8385 apt install --assume-yes --no-install-recommends default-jdk libopencv-dev unzip
84-
86+
8587 - name : Setup Gradle
86- uses : gradle/actions/setup-gradle@v3
88+ uses : gradle/actions/setup-gradle@db19848a5fa7950289d3668fb053140cf3028d43 # v3.3.2
8789 with :
8890 gradle-version : ${{ env.GRADLE_VER }}
89-
91+
9092 - name : Setup Python ${{ env.PYTHON_VERSION }}
91- uses : actions/setup-python@v5
93+ uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
9294 with :
9395 python-version : ${{ env.PYTHON_VERSION }}
9496
9597 - name : Install python dependencies
9698 run : python3 -m pip install -r ${OPENVINO_REPO}/src/bindings/python/wheel/requirements-dev.txt
97-
99+
98100 - name : Setup ccache
99- uses : actions/cache@v4
101+ uses : actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
100102 with :
101103 # Should save cache only if run in the master branch of the base repo
102104 # github.ref_name is 'ref/PR_#' in case of the PR, and 'branch_name' when executed on push
@@ -179,7 +181,7 @@ jobs:
179181 popd
180182
181183 - name : Upload Test Results
182- uses : actions/upload-artifact@v4
184+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
183185 if : ${{ !cancelled() }}
184186 with :
185187 name : test-results-java
@@ -188,15 +190,15 @@ jobs:
188190
189191 - name : Upload openvino package
190192 if : ${{ always() }}
191- uses : actions/upload-artifact@v4
193+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
192194 with :
193195 name : openvino_package
194196 path : ${{ env.BUILD_DIR }}/openvino_package.tar.gz
195197 if-no-files-found : ' error'
196198
197199 - name : Upload openvino developer package
198200 if : ${{ always() }}
199- uses : actions/upload-artifact@v4
201+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
200202 with :
201203 name : openvino_developer_package
202204 path : ${{ env.BUILD_DIR }}/openvino_developer_package.tar.gz
@@ -232,7 +234,7 @@ jobs:
232234 run : echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
233235
234236 - name : Fetch install_build_dependencies.sh
235- uses : actions/checkout@v4
237+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
236238 with :
237239 sparse-checkout : |
238240 install_build_dependencies.sh
@@ -245,13 +247,13 @@ jobs:
245247 run : apt update && apt install -y git ca-certificates
246248
247249 - name : Download OpenVINO package
248- uses : actions/download-artifact@v4
250+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
249251 with :
250252 name : openvino_package
251253 path : ${{ env.INSTALL_DIR }}
252254
253255 - name : Download OpenVINO Developer package
254- uses : actions/download-artifact@v4
256+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
255257 with :
256258 name : openvino_developer_package
257259 path : ${{ env.INSTALL_DIR }}
@@ -267,7 +269,7 @@ jobs:
267269 popd
268270
269271 - name : Clone OpenVINO Contrib
270- uses : actions/checkout@v4
272+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
271273 with :
272274 path : ${{ env.OPENVINO_CONTRIB_REPO }}
273275
@@ -281,7 +283,7 @@ jobs:
281283 apt -y --no-install-recommends install software-properties-common curl
282284
283285 - name : Setup ccache
284- uses : actions/cache@v4
286+ uses : actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
285287 with :
286288 # Should save cache only if run in the master branch of the base repo
287289 # github.ref_name is 'ref/PR_#' in case of the PR, and 'branch_name' when executed on push
0 commit comments