Gitlab security-code-scan-sast 无法使用 `nuget 和 `msbuild` 从解决方案文件构建项目

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

我们一直在尝试在我们的 Gitlab CI/CD 管道中实施 Gitlab SAST。

当管道运行时,它会触发 security-code-scan-sast 作业,并在构建解决方案文件时返回错误,如下所示:

[FATA] [security-code-scan] [2023-05-11T06:17:39Z] ▶ Unable to build project from solution file using `nuget and `msbuild`.
output: Microsoft (R) Build Engine version 16.9.0 for Mono
Copyright (C) Microsoft Corporation. All rights reserved.
/this/is/path/to/Project.dtproj(3,3): error MSB4067: The element <DeploymentModel> beneath element <Project> is unrecognized.

有谁知道可能的解决方案是什么?

非常感谢任何想法。

gitlab gitlab-ci gitlab-ci-runner cicd sast
© www.soinside.com 2019 - 2024. All rights reserved.