Skip to content

The Unified and Autonomous Development Platform

Edit .onedev-buildspec.yml

Robin Shen1b7c85279492
diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml
index 94b273f9ae..ceaf00ed20 100644
--- a/.onedev-buildspec.yml
+++ b/.onedev-buildspec.yml
@@ -12,6 +12,7 @@ jobs:
accessTokenSecret: onedev-token
withLfs: false
withSubmodules: true
+ cloneDepth: 1
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !UseTemplateStep
name: set up cache
@@ -327,6 +328,7 @@ jobs:
cloneCredential: !DefaultCredential {}
withLfs: false
withSubmodules: false
+ cloneDepth: 1
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !ScanDepVulnersStep
name: scan