You've already forked agentic-coding-workflow
git 逻辑
This commit is contained in:
@@ -44,6 +44,8 @@ func TestValidateRemoteURL(t *testing.T) {
|
||||
require.NoError(t, ValidateRemoteURL("ssh://git@host/x.git"))
|
||||
require.Error(t, ValidateRemoteURL("file:///etc/passwd"))
|
||||
require.Error(t, ValidateRemoteURL("ftp://x"))
|
||||
// 内嵌凭据(user:pass@)须被拒绝,避免绕过本系统凭据存储
|
||||
require.Error(t, ValidateRemoteURL("https://user:pass@github.com/x/y.git"))
|
||||
}
|
||||
|
||||
func TestPaths(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user