Skip to content

Commit e0dfe62

Browse files
committed
pkg name="istio" type="golang/github/etc"
Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
1 parent bfcd5b2 commit e0dfe62

2 files changed

Lines changed: 40 additions & 40 deletions

File tree

vulnerabilities/importers/istio.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,23 +157,23 @@ def process_file(self, path):
157157
)
158158

159159
safe_purls_golang = {
160-
PackageURL(type="istio", name="golang", version=version)
160+
PackageURL(type="golang", name="istio", version=version)
161161
for version in safe_pkg_versions
162162
}
163163

164164
safe_purls_github = {
165-
PackageURL(type="istio", name="github", version=version)
165+
PackageURL(type="github", name="istio", version=version)
166166
for version in safe_pkg_versions
167167
}
168168
safe_purls = safe_purls_github.union(safe_purls_golang)
169169

170170
vuln_purls_golang = {
171-
PackageURL(type="istio", name="golang", version=version)
171+
PackageURL(type="golang", name="istio", version=version)
172172
for version in vuln_pkg_versions
173173
}
174174

175175
vuln_purls_github = {
176-
PackageURL(type="istio", name="github", version=version)
176+
PackageURL(type="github", name="istio", version=version)
177177
for version in vuln_pkg_versions
178178
}
179179
vuln_purls = vuln_purls_github.union(vuln_purls_golang)

vulnerabilities/tests/test_istio.py

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -81,95 +81,95 @@ def test_process_file(self):
8181
summary=("Incorrect access control."),
8282
impacted_package_urls={
8383
PackageURL(
84-
type="istio",
85-
name="golang",
84+
type="golang",
85+
name="istio",
8686
version="1.1.0-snapshot.2",
8787
),
8888
PackageURL(
89-
type="istio",
90-
name="golang",
89+
type="golang",
90+
name="istio",
9191
version="1.1.0-snapshot.3",
9292
),
9393
PackageURL(
94-
type="istio",
95-
name="github",
94+
type="github",
95+
name="istio",
9696
version="1.1.0-snapshot.2",
9797
),
9898
PackageURL(
99-
type="istio",
100-
name="github",
99+
type="github",
100+
name="istio",
101101
version="1.1.0-snapshot.3",
102102
),
103103
},
104104
resolved_package_urls={
105105
PackageURL(
106-
type="istio",
107-
name="golang",
106+
type="golang",
107+
name="istio",
108108
version="1.1.0-rc.2",
109109
),
110110
PackageURL(
111-
type="istio",
112-
name="golang",
111+
type="golang",
112+
name="istio",
113113
version="1.1.0-rc.4",
114114
),
115115
PackageURL(
116-
type="istio",
117-
name="golang",
116+
type="golang",
117+
name="istio",
118118
version="1.1.0-rc.3",
119119
),
120120
PackageURL(
121-
type="istio",
122-
name="golang",
121+
type="golang",
122+
name="istio",
123123
version="1.1.0-rc.0",
124124
),
125125
PackageURL(
126-
type="istio",
127-
name="golang",
126+
type="golang",
127+
name="istio",
128128
version="1.1.0-rc.5",
129129
),
130130
PackageURL(
131-
type="istio",
132-
name="golang",
131+
type="golang",
132+
name="istio",
133133
version="1.1.0-rc.1",
134134
),
135135
PackageURL(
136-
type="istio",
137-
name="golang",
136+
type="golang",
137+
name="istio",
138138
version="1.1.0-rc.6",
139139
),
140140
PackageURL(
141-
type="istio",
142-
name="github",
141+
type="github",
142+
name="istio",
143143
version="1.1.0-rc.2",
144144
),
145145
PackageURL(
146-
type="istio",
147-
name="github",
146+
type="github",
147+
name="istio",
148148
version="1.1.0-rc.4",
149149
),
150150
PackageURL(
151-
type="istio",
152-
name="github",
151+
type="github",
152+
name="istio",
153153
version="1.1.0-rc.3",
154154
),
155155
PackageURL(
156-
type="istio",
157-
name="github",
156+
type="github",
157+
name="istio",
158158
version="1.1.0-rc.0",
159159
),
160160
PackageURL(
161-
type="istio",
162-
name="github",
161+
type="github",
162+
name="istio",
163163
version="1.1.0-rc.5",
164164
),
165165
PackageURL(
166-
type="istio",
167-
name="github",
166+
type="github",
167+
name="istio",
168168
version="1.1.0-rc.1",
169169
),
170170
PackageURL(
171-
type="istio",
172-
name="github",
171+
type="github",
172+
name="istio",
173173
version="1.1.0-rc.6",
174174
),
175175
},

0 commit comments

Comments
 (0)