SAST Analyzer error: Unable to build project using dotnet
, attempting to build using nuget
and msbuild
Describe your question in as much detail as possible:
When the security-code-scan runs it’s failing a giving me the following errors:
[WARN] [security-code-scan] [2021-01-28T16:09:50Z] ▶ Unable to build project using
dotnet, attempting to build using
nugetand
msbuild`` [FATA] [security-code-scan] [2021-01-28T16:09:54Z] ▶ Unable to build project from solution file using
nuget and msbuild
. Err: %!s()`
- Add the CI configuration from
.gitlab-ci.yml
and other configuration if relevant (e.g. docker-compose.yml)
security-code-scan-sast:
extends: .sast-analyzer
image:
name: “$SAST_ANALYZER_IMAGE”
variables:
SAST_ANALYZER_IMAGE: “$SECURE_ANALYZERS_PREFIX/security-code-scan:$SAST_ANALYZER_IMAGE_TAG”
rules:
- if: $SAST_DISABLED
when: never
- if: $CI_COMMIT_BRANCH &&
$SAST_DEFAULT_ANALYZERS =~ /security-code-scan/
exists:
- ‘/*.csproj’
- '/*.vbproj’
Thanks for taking the time to be thorough in your request, it really helps!