Skip to content

Commit 295961a

Browse files
urutvaaggarg
authored andcommitted
manifest: Add the security-risk attribute
In addition to adding the `security-risk` attribute, update TPIP script to check if all the dependencies contains this attribute. Signed-off-by: Devaraj Ranganna <[email protected]>
1 parent 0d54d03 commit 295961a

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

manifest.yml

+26
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ dependencies:
66
- name: "FreeRTOS-Kernel"
77
license: "MIT"
88
tpip-category: "category-2"
9+
security-risk: "low"
910
version: "V11.1.0"
1011
repository:
1112
type: "git"
@@ -14,6 +15,7 @@ dependencies:
1415
- name: "arm-corstone-platform-bsp"
1516
license: "Apache-2.0"
1617
tpip-category: "category-2"
18+
security-risk: "low"
1719
version: "v0.3.0"
1820
repository:
1921
type: "git"
@@ -22,6 +24,7 @@ dependencies:
2224
- name: "trusted-firmware-m"
2325
license: "BSD-3-Clause"
2426
tpip-category: "category-2"
27+
security-risk: "high"
2528
version: "TF-Mv2.1.0"
2629
repository:
2730
type: "git"
@@ -30,6 +33,7 @@ dependencies:
3033
- name: "mbedtls"
3134
license: "Apache-2.0"
3235
tpip-category: "category-2"
36+
security-risk: "high"
3337
version: "v3.6.0"
3438
repository:
3539
type: "git"
@@ -38,6 +42,7 @@ dependencies:
3842
- name: "IoT_Socket"
3943
license: "Apache-2.0"
4044
tpip-category: "category-2"
45+
security-risk: "low"
4146
version: "1e15f55ae08c2169c0e4a59216e78a4906a66af8"
4247
repository:
4348
type: "git"
@@ -46,6 +51,7 @@ dependencies:
4651
- name: "AVH"
4752
license: "Apache-2.0"
4853
tpip-category: "category-2"
54+
security-risk: "low"
4955
version: "ab37f6126c94fee7bbd061f77716745dfbb77592"
5056
repository:
5157
type: "git"
@@ -54,6 +60,7 @@ dependencies:
5460
- name: "freertos-pkcs11-psa"
5561
license: "MIT"
5662
tpip-category: "category-2"
63+
security-risk: "low"
5764
version: "6caaf973920df9ae6823ef9be42f7e86aa91d168"
5865
repository:
5966
type: "git"
@@ -62,6 +69,7 @@ dependencies:
6269
- name: "freertos-ota-pal-psa"
6370
license: "MIT"
6471
tpip-category: "category-2"
72+
security-risk: "low"
6573
version: "08e6c6eeb978f28d873f9a12c58882b88f1b7235"
6674
repository:
6775
type: "git"
@@ -70,6 +78,7 @@ dependencies:
7078
- name: "coreMQTT-Agent"
7179
license: "MIT"
7280
tpip-category: "category-2"
81+
security-risk: "low"
7382
version: "v1.2.0"
7483
repository:
7584
type: "git"
@@ -78,6 +87,7 @@ dependencies:
7887
- name: "coreMQTT"
7988
license: "MIT"
8089
tpip-category: "category-2"
90+
security-risk: "low"
8191
version: "v2.1.1"
8292
repository:
8393
type: "git"
@@ -86,6 +96,7 @@ dependencies:
8696
- name: "coreJSON"
8797
license: "MIT"
8898
tpip-category: "category-2"
99+
security-risk: "low"
89100
version: "v3.2.0"
90101
repository:
91102
type: "git"
@@ -94,6 +105,7 @@ dependencies:
94105
- name: "corePKCS11"
95106
license: "MIT"
96107
tpip-category: "category-2"
108+
security-risk: "low"
97109
version: "v3.5.0"
98110
repository:
99111
type: "git"
@@ -102,6 +114,7 @@ dependencies:
102114
- name: "coreSNTP"
103115
license: "MIT"
104116
tpip-category: "category-2"
117+
security-risk: "low"
105118
version: "v1.2.0"
106119
repository:
107120
type: "git"
@@ -110,6 +123,7 @@ dependencies:
110123
- name: "backoffAlgorithm"
111124
license: "MIT"
112125
tpip-category: "category-2"
126+
security-risk: "low"
113127
version: "v1.3.0"
114128
repository:
115129
type: "git"
@@ -118,6 +132,7 @@ dependencies:
118132
- name: "ota-for-aws-iot-embedded-sdk"
119133
license: "MIT"
120134
tpip-category: "category-2"
135+
security-risk: "low"
121136
version: "v3.4.0"
122137
repository:
123138
type: "git"
@@ -126,6 +141,7 @@ dependencies:
126141
- name: "tinycbor"
127142
license: "MIT"
128143
tpip-category: "category-2"
144+
security-risk: "low"
129145
version: "9924cfed3b95ad6de299ae675064430fdb886216"
130146
repository:
131147
type: "git"
@@ -134,6 +150,7 @@ dependencies:
134150
- name: "toolchains"
135151
license: "Apache-2.0"
136152
tpip-category: "category-2"
153+
security-risk: "low"
137154
version: "f77e1ba2bb830f6950a88c34849cf3df9af4ad32"
138155
repository:
139156
type: "git"
@@ -142,6 +159,7 @@ dependencies:
142159
- name: "FreeRTOS-Libraries-Integration-Tests"
143160
license: "MIT"
144161
tpip-category: "category-2"
162+
security-risk: "low"
145163
version: "202210.01"
146164
repository:
147165
type: "git"
@@ -150,6 +168,7 @@ dependencies:
150168
- name: "Unity"
151169
license: "MIT"
152170
tpip-category: "category-2"
171+
security-risk: "low"
153172
version: "v2.5.2"
154173
repository:
155174
type: "git"
@@ -158,6 +177,7 @@ dependencies:
158177
- name: "FreeRTOS-Plus-TCP"
159178
license: "MIT"
160179
tpip-category: "category-2"
180+
security-risk: "low"
161181
version: "ba4e25c350020abcb787a3a319fdf991bef70538"
162182
repository:
163183
type: "git"
@@ -166,6 +186,7 @@ dependencies:
166186
- name: "ml-embedded-evaluation-kit"
167187
license: "Apache-2.0"
168188
tpip-category: "category-2"
189+
security-risk: "low"
169190
version: "24.05"
170191
repository:
171192
type: "git"
@@ -174,6 +195,7 @@ dependencies:
174195
- name: "speexdsp"
175196
license: "BSD-3-Clause"
176197
tpip-category: "category-2"
198+
security-risk: "low"
177199
version: "738e17905e1ca2a1fa932ddd9c2a85d089f4e845"
178200
repository:
179201
type: "git"
@@ -182,6 +204,7 @@ dependencies:
182204
- name: "isp_mali-c55"
183205
license: "BSD-3-Clause"
184206
tpip-category: "category-2"
207+
security-risk: "low"
185208
version: "r0p0_1.0"
186209
repository:
187210
type: "git"
@@ -190,6 +213,7 @@ dependencies:
190213
- name: "arm-2d"
191214
license: "Apache-2.0"
192215
tpip-category: "category-2"
216+
security-risk: "low"
193217
version: "v1.1.5"
194218
repository:
195219
type: "git"
@@ -198,6 +222,7 @@ dependencies:
198222
- name: "Fake Function Framework"
199223
license: "MIT"
200224
tpip-category: "category-2"
225+
security-risk: "low"
201226
version: "5111c61e1ef7848e3afd3550044a8cf4405f4199"
202227
repository:
203228
type: "git"
@@ -206,6 +231,7 @@ dependencies:
206231
- name: "GoogleTest"
207232
license: "BSD-3-Clause"
208233
tpip-category: "category-2"
234+
security-risk: "low"
209235
version: "v1.15.2"
210236
repository:
211237
type: "git"
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
manifest: Add the `security-risk` attribute

tools/scripts/check_listed_dependencies.py

+7
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def main(manifest_file: str) -> None:
1919
- a TPIP category attribute
2020
- a version attribute
2121
- a path attribute
22+
- a security risk attribute
2223
Args:
2324
manifest_file (str): Path to the YAML manifest file.
2425
"""
@@ -56,6 +57,12 @@ def check_the_manifest(manifest_data: Dict) -> bool:
5657
f" `tpip-category` attribute in the manifest file"
5758
)
5859
manifest_has_all_attributes = False
60+
if "security-risk" not in dependency:
61+
print(
62+
f"Dependency '{dependency['name']}' is missing"
63+
f" `security-risk` attribute in the manifest file"
64+
)
65+
manifest_has_all_attributes = False
5966
if "version" not in dependency:
6067
print(
6168
f"Dependency '{dependency['name']}' is missing"

0 commit comments

Comments
 (0)