GCP 中容器分析 API 的问题

问题描述 投票:0回答:1

我在 Pulumi 中使用 TypeScript 使用以下代码启用了 GCP 项目中的

Container Analysis API

new gcp.projects.Service(`mbadas-${environment}-container-analysis-api`, {
  project: projectId,
  service: 'containeranalysis.googleapis.com',
  disableOnDestroy: false,
});

当我转到 GCP 控制台 --> API --> 已启用的 API 和服务时,我还可以看到 API 已启用

当我在 GCP 控制台中转到

Artifact Registry
时,它仍然显示
API disabled
(参见下图):

我在这里做错了什么?为什么图像没有被扫描

Vulnerabilities

谢谢!!!

google-cloud-platform google-artifact-registry image-scanner
1个回答
0
投票

为了执行扫描,需要启用 2 个 API:

  • 工件注册表

  • 容器扫描API

然后按照这些文档启用图像漏洞自动扫描。

© www.soinside.com 2019 - 2024. All rights reserved.