我有这个无法描述的CI错误,有可能得到更多的描述吗?
下面的代码片段:
$ semgrep-agent
| versions - semgrep 0.81.0 on Python 3.9.10
| environment - running in environment gitlab-ci, triggering event is 'pull_request'
| manage - not logged in
=== setting up agent configuration
| using semgrep rules from https://semgrep.dev/c/p/security-audit
| using semgrep rules from https://semgrep.dev/c/p/secrets
An unexpected error occurred:
<class 'sh.ErrorReturnCode_1'>
RAN: /usr/bin/git merge-base --all b7cb3f8e678d943b4cded2e55d45221fafbde030 FETCH_HEAD
STDOUT:
STDERR:发布于 2022-05-24 16:34:07
可能发生的情况是,您将git_depth变量设置为太低的值:
variables:
GIT_DEPTH: 1Semgrep需要获取提交历史记录,以便在源分支和目标分支之间进行区分感知扫描,因此限制git_depth可能是导致一些与合并相关的错误的原因。
https://stackoverflow.com/questions/72366436
复制相似问题