我收到一个非描述性的 Gitlab CI 错误。任何人都可以帮助我尝试获得更好的错误陈述吗?
I am getting a non-descript Gitlab CI error. Can anyone help me try to get a better error statement?
我有这个非描述性的 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:
可能发生的情况是您将 git_depth 变量设置得太低:
variables:
GIT_DEPTH: 1
Semgrep 需要获取提交历史记录以在源分支和目标分支之间进行 diff-aware 扫描,因此限制 git_depth 可能是一些 merge-related 个错误。
我有这个非描述性的 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:
可能发生的情况是您将 git_depth 变量设置得太低:
variables:
GIT_DEPTH: 1
Semgrep 需要获取提交历史记录以在源分支和目标分支之间进行 diff-aware 扫描,因此限制 git_depth 可能是一些 merge-related 个错误。