@@ -15,6 +15,8 @@ concurrency:
15
15
env :
16
16
PYTHON_VERSION : ' 3.11'
17
17
18
+ permissions : read-all
19
+
18
20
jobs :
19
21
Build_and_test :
20
22
name : Build and Test
@@ -51,21 +53,21 @@ jobs:
51
53
apt-get install --assume-yes --no-install-recommends git git-lfs ca-certificates
52
54
53
55
- name : Clone OpenVINO
54
- uses : actions/checkout@v4
56
+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
55
57
with :
56
58
repository : ' openvinotoolkit/openvino'
57
59
path : ${{ env.OPENVINO_REPO }}
58
60
submodules : ' true'
59
61
ref : ' master'
60
62
61
63
- name : Clone OpenVINO Contrib
62
- uses : actions/checkout@v4
64
+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
63
65
with :
64
66
path : ${{ env.OPENVINO_CONTRIB_REPO }}
65
67
submodules : ' true'
66
-
68
+
67
69
- name : Clone Testdata
68
- uses : actions/checkout@v4
70
+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
69
71
with :
70
72
repository : ' openvinotoolkit/testdata'
71
73
path : ${{ env.TEST_DATA }}
@@ -81,22 +83,22 @@ jobs:
81
83
bash ${OPENVINO_REPO}/install_build_dependencies.sh
82
84
# default-jdk - Java API; unzip for gradle installation
83
85
apt install --assume-yes --no-install-recommends default-jdk libopencv-dev unzip
84
-
86
+
85
87
- name : Setup Gradle
86
- uses : gradle/actions/setup-gradle@v3
88
+ uses : gradle/actions/setup-gradle@db19848a5fa7950289d3668fb053140cf3028d43 # v3.3.2
87
89
with :
88
90
gradle-version : ${{ env.GRADLE_VER }}
89
-
91
+
90
92
- name : Setup Python ${{ env.PYTHON_VERSION }}
91
- uses : actions/setup-python@v5
93
+ uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
92
94
with :
93
95
python-version : ${{ env.PYTHON_VERSION }}
94
96
95
97
- name : Install python dependencies
96
98
run : python3 -m pip install -r ${OPENVINO_REPO}/src/bindings/python/wheel/requirements-dev.txt
97
-
99
+
98
100
- name : Setup ccache
99
- uses : actions/cache@v4
101
+ uses : actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
100
102
with :
101
103
# Should save cache only if run in the master branch of the base repo
102
104
# github.ref_name is 'ref/PR_#' in case of the PR, and 'branch_name' when executed on push
@@ -179,7 +181,7 @@ jobs:
179
181
popd
180
182
181
183
- name : Upload Test Results
182
- uses : actions/upload-artifact@v4
184
+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
183
185
if : ${{ !cancelled() }}
184
186
with :
185
187
name : test-results-java
@@ -188,15 +190,15 @@ jobs:
188
190
189
191
- name : Upload openvino package
190
192
if : ${{ always() }}
191
- uses : actions/upload-artifact@v4
193
+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
192
194
with :
193
195
name : openvino_package
194
196
path : ${{ env.BUILD_DIR }}/openvino_package.tar.gz
195
197
if-no-files-found : ' error'
196
198
197
199
- name : Upload openvino developer package
198
200
if : ${{ always() }}
199
- uses : actions/upload-artifact@v4
201
+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
200
202
with :
201
203
name : openvino_developer_package
202
204
path : ${{ env.BUILD_DIR }}/openvino_developer_package.tar.gz
@@ -232,7 +234,7 @@ jobs:
232
234
run : echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
233
235
234
236
- name : Fetch install_build_dependencies.sh
235
- uses : actions/checkout@v4
237
+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
236
238
with :
237
239
sparse-checkout : |
238
240
install_build_dependencies.sh
@@ -245,13 +247,13 @@ jobs:
245
247
run : apt update && apt install -y git ca-certificates
246
248
247
249
- name : Download OpenVINO package
248
- uses : actions/download-artifact@v4
250
+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
249
251
with :
250
252
name : openvino_package
251
253
path : ${{ env.INSTALL_DIR }}
252
254
253
255
- name : Download OpenVINO Developer package
254
- uses : actions/download-artifact@v4
256
+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
255
257
with :
256
258
name : openvino_developer_package
257
259
path : ${{ env.INSTALL_DIR }}
@@ -267,7 +269,7 @@ jobs:
267
269
popd
268
270
269
271
- name : Clone OpenVINO Contrib
270
- uses : actions/checkout@v4
272
+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
271
273
with :
272
274
path : ${{ env.OPENVINO_CONTRIB_REPO }}
273
275
@@ -281,7 +283,7 @@ jobs:
281
283
apt -y --no-install-recommends install software-properties-common curl
282
284
283
285
- name : Setup ccache
284
- uses : actions/cache@v4
286
+ uses : actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
285
287
with :
286
288
# Should save cache only if run in the master branch of the base repo
287
289
# github.ref_name is 'ref/PR_#' in case of the PR, and 'branch_name' when executed on push
0 commit comments