Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.

Commit 4591dec

Browse files
authored
More strict CIRRUS_CLONE_SUBMODULES (#115)
Make sure only `true` will enable this setting and not some `yes` or other arbitrary boolean representation.
1 parent c22a59f commit 4591dec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/executor/executor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ func (executor *Executor) CloneRepository(env map[string]string) bool {
367367
branch := env["CIRRUS_BRANCH"]
368368
pr_number, is_pr := env["CIRRUS_PR"]
369369
tag, is_tag := env["CIRRUS_TAG"]
370-
_, is_clone_modules := env["CIRRUS_CLONE_SUBMODULES"]
370+
is_clone_modules := env["CIRRUS_CLONE_SUBMODULES"] == "true"
371371

372372
clone_url := env["CIRRUS_REPO_CLONE_URL"]
373373
if _, has_clone_token := env["CIRRUS_REPO_CLONE_TOKEN"]; has_clone_token {

0 commit comments

Comments
 (0)