ci: 彻底使用单行全量 HTTP/1.1 clone 绕过 Drone 插件特有的浅拉取漏洞
continuous-integration/drone/push Build is failing

This commit is contained in:
seahi committed 2026-09-11 11:31:25 +08:00
1 parent 8995d0e761
commit 3a7665a881
1 file changed
+11
+11
View File
@@ -2,6 +2,9 @@ kind: pipeline
type: docker type: docker
name: default name: default
clone:
disable: true
node: node:
name: pve name: pve
@@ -13,6 +16,14 @@ trigger:
- custom - custom
steps: steps:
- name: clone
image: alpine/git
commands:
- "git config --global http.version HTTP/1.1"
- "git config --global protocol.version 1"
- "git clone --depth=1 https://git.seahi.me/seahi/blogflare.git ."
- "git checkout -qf ${DRONE_COMMIT_SHA}"
- name: install - name: install
image: node:22-slim image: node:22-slim
volumes: volumes: