You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constDHI_DISCLAIMER=`Docker Hardened Images are available for organizations entitled to DHIs.If you're interested in accessing Docker Hardened Images, please visit:
@@ -59,7 +63,7 @@ export class ScoutAPI extends Asset {
59
63
'docker-hardened-images',
60
64
{
61
65
description:
62
-
'Docker Hardened Images (DHI) API. This API is used to query for mirrored DHIs in the namespace. It lists all the secure, minimal, production-ready images available to get near-zero CVEs and enterprise-grade SLA.',
66
+
'Docker Hardened Images (DHI) API. This API is used to query for mirrored DHIs in the namespace. It lists all the secure, minimal, productionready images available to get near-zero CVEs and enterprise-grade SLA.',
63
67
inputSchema: z.object({
64
68
namespace: z
65
69
.string()
@@ -72,6 +76,7 @@ export class ScoutAPI extends Asset {
72
76
},
73
77
},
74
78
async({ namespace })=>{
79
+
logger.info(`Querying for mirrored DHI images for organization: ${namespace}`);
logger.info(`No mirrored DHI images found for organization: ${namespace}`);
115
+
return{
116
+
content: [
117
+
{
118
+
type: 'text',
119
+
text: `There are no mirrored DHI images for the organization '${namespace}'. Could you try again by providing a different organization entitled to DHIs?`,
120
+
},
121
+
{
122
+
type: 'text',
123
+
text: DHI_DISCLAIMER,
124
+
},
125
+
],
126
+
};
127
+
}
128
+
logger.info(
129
+
`Found ${data.dhiListMirroredRepositories.mirroredRepositories.length} mirrored DHI images for organization: ${namespace}`
130
+
);
99
131
return{
100
132
content: [
101
133
{
102
134
type: 'text',
103
-
text: JSON.stringify(data,null,2),
135
+
text: `Here are the mirrored DHI images for the organization '${namespace}':\n\n${JSON.stringify(
Copy file name to clipboardExpand all lines: tools.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3753,7 +3753,7 @@
3753
3753
},
3754
3754
{
3755
3755
"name": "docker-hardened-images",
3756
-
"description": "Docker Hardened Images (DHI) API. This API is used to query for mirrored DHIs in the namespace. It lists all the secure, minimal, production-ready images available to get near-zero CVEs and enterprise-grade SLA.",
3756
+
"description": "Docker Hardened Images (DHI) API. This API is used to query for mirrored DHIs in the namespace. It lists all the secure, minimal, productionready images available to get near-zero CVEs and enterprise-grade SLA.",
0 commit comments